public class TimeZoneUtil extends Object
TimeZoneUtil class provides convenience methods for handling
time zones in Java.| Constructor and Description |
|---|
TimeZoneUtil() |
| Modifier and Type | Method and Description |
|---|---|
static TimeZone[] |
getAvailableZones()
Returns an array of
TimeZone objects sorted in ascending order
by their UTC time offset. |
static String |
getDisplayName(TimeZone zone)
Formats the passed
TimeZone object to a String representation: |
static TimeZone |
getServerTimeZone()
Returns the
TimeZone of the Communiqué server. |
public static TimeZone[] getAvailableZones()
TimeZone objects sorted in ascending order
by their UTC time offset.TimeZone objects.public static TimeZone getServerTimeZone()
TimeZone of the Communiqué server.TimeZone of the Communiqué server.public static String getDisplayName(TimeZone zone)
TimeZone object to a String representation:
[<UTC offset>] <time zone name> (<short name>)
Example: [UTC+01.00] Europe/Berlin (CEST)
zone - The TimeZone to formatString representation of the passed TimeZone.Copyright © 2010 - 2020 Adobe. All Rights Reserved