Class TimeZone

Gives access to timezone info. Call the global function getLocalTimeZone() to get the object.

Constructors

TimeZone()

Initializes a new instance of the TimeZone class.

Declaration

TimeZone

Methods

getTimeZone()

This functions will give you the difference from GMT in hours and minutes.

Declaration

String getTimeZone()

Returns

Type Description
String The time zone string on the form "+0100", "-0545" etc.

getTimeZoneSecs()

Difference from GMT in seconds.

Declaration

Integer getTimeZoneSecs()

Returns

Type Description
Integer Difference from GMT in seconds.