public class CalendarTimeZone extends Object
Modifier and Type | Field and Description |
---|---|
static CalendarTimeZone |
UTC |
Constructor and Description |
---|
CalendarTimeZone(String id)
Gets a time zone instance for the specified time zone id.
|
CalendarTimeZone(TimeZone zone) |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getAvailableIDs() |
public static final CalendarTimeZone UTC
public CalendarTimeZone(String id)
The time zone id may be one of those returned by getAvailableIDs.
Short ids, as accepted by TimeZone
, are not accepted.
All IDs must be specified in the long format.
The exception is UTC, which is an acceptable id.
Alternatively a locale independent, fixed offset, datetime zone can
be specified. The form [+-]hh:mm
can be used.
id
- the ID of the datetime zone, null means defaultIllegalArgumentException
- if the ID is not recognisedpublic CalendarTimeZone(TimeZone zone)