List of utility methods to do UTC TimeZone
int | _getUTCOffset() get UTC Offset TimeZone jiraTimeZone = TimeZone.getTimeZone("America/Los_Angeles"); return jiraTimeZone.getOffset(System.currentTimeMillis()); |
String | formatTimezoneOffsetFromUTC(TimeZone tz) format Timezone Offset From UTC return appendZZZZZ(tz.getRawOffset(), new StringBuilder(5)).toString(); |
TimeZone | getUTCTimeZone() Retrieves a TimeZone object that represents the UTC (universal coordinated time) time zone. return UTC_TIME_ZONE;
|
java.util.TimeZone | getUTCTimeZone() get UTC Time Zone if (utcTimeZone == null) { utcTimeZone = java.util.TimeZone.getTimeZone("UTC"); return utcTimeZone; |
long | localToUTC(long local) Converts local time to UTC (GMT). int offset = TimeZone.getDefault().getRawOffset(); return local - offset; |
TimeZone | utc() Returns a UTC timezone object. return TimeZone.getTimeZone("UTC"); |
TimeZone | UTCTimeZone() Returns the UTC time zone. return TimeZone.getTimeZone(UTC_TIMEZONE_IDENTIFIER);
|