public class CalendarTimeZone
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CalendarTimeZone |
UTC |
Constructor and Description |
---|
CalendarTimeZone(java.lang.String id)
Gets a time zone instance for the specified time zone id.
|
CalendarTimeZone(java.util.TimeZone zone) |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
getAvailableIDs() |
public static final CalendarTimeZone UTC
public CalendarTimeZone(java.lang.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 defaultjava.lang.IllegalArgumentException
- if the ID is not recognisedpublic CalendarTimeZone(java.util.TimeZone zone)