public class CalendarTimeZone extends Object
| Constructor and Description |
|---|
CalendarTimeZone(String id)
Gets a time zone instance for the specified time zone id.
|
CalendarTimeZone(TimeZone zone) |
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)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.