public class TimeZoneUtil
extends java.lang.Object
TimeZoneUtil class provides convenience methods for handling
time zones in Java.| Constructor and Description |
|---|
TimeZoneUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.TimeZone[] |
getAvailableZones()
Returns an array of
TimeZone objects sorted in ascending order
by their UTC time offset. |
static java.lang.String |
getDisplayName(java.util.TimeZone zone)
Formats the passed
TimeZone object to a String representation: |
static java.util.TimeZone |
getServerTimeZone()
Returns the
TimeZone of the Communiqu server. |
public static java.util.TimeZone[] getAvailableZones()
TimeZone objects sorted in ascending order
by their UTC time offset.TimeZone objects.public static java.util.TimeZone getServerTimeZone()
TimeZone of the Communiqu server.TimeZone of the Communiqu server.public static java.lang.String getDisplayName(java.util.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 - 2023 Adobe. All Rights Reserved