public class FastTimeZone extends Object
Modifier and Type | Method and Description |
---|---|
static TimeZone |
getGmtTimeZone()
Gets the GMT TimeZone.
|
static TimeZone |
getGmtTimeZone(String pattern)
Gets a TimeZone with GMT offsets.
|
static TimeZone |
getTimeZone(String id)
Gets a TimeZone, looking first for GMT custom ids, then falling back to Olson ids.
|
public static TimeZone getGmtTimeZone()
public static TimeZone getGmtTimeZone(String pattern)
pattern
- The GMT offsetpublic static TimeZone getTimeZone(String id)
id
- A GMT custom id (or Olson idCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.