Class TimeZone


  extended by Object
      extended by TimeZone

public class TimeZone
extends Object

TimeZone represents a time zone offset, and also figures out daylight savings. The only time zone ID that is required to be supported is "GMT".

See Also:
getTimeZone(String), getDefaultTimeZone(), getAvailableTimeZones()

Method Summary
 String getID()
          Gets the ID of this time zone.
 int getOffset()
          Gets the GMT offset for this time zone.
 
Methods inherited from class Object
toString, equals, hashCode
 
Methods inherited from
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getID

public String getID()
Gets the ID of this time zone.

Returns:
the ID of this time zone.

getOffset

public int getOffset()
Gets the GMT offset for this time zone.

Returns:
GMT offset in milliseconds