Package ucar.nc2.time

Class CalendarTimeZone

java.lang.Object
ucar.nc2.time.CalendarTimeZone

public class CalendarTimeZone extends Object
Encapsulate TimeZone functionality.
Since:
10/28/12
  • Field Details

  • Constructor Details

    • CalendarTimeZone

      public CalendarTimeZone(String id)
      Gets a time zone instance for the specified time zone 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.

      Parameters:
      id - the ID of the datetime zone, null means default
      Throws:
      IllegalArgumentException - if the ID is not recognised
    • CalendarTimeZone

      public CalendarTimeZone(TimeZone zone)
  • Method Details

    • getAvailableIDs

      public static Set<String> getAvailableIDs()