Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.relayr.model; // w w w.j a v a 2 s . c o m import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; public class LogEvent { private static final DateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); static { sDateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); } private final String message; private final String timestamp; public LogEvent(String message) { this.message = message; this.timestamp = sDateFormat.format(new Date()); } }