goog.i18n.TimeZone |
Return the DST adjustment to the time zone offset for a given time.
While Daylight Saving Time is in effect, this number is positive.
Otherwise, it is zero.
Arguments:
Returns: number
The DST adjustment in minutes EAST of UTC.
|
code » | ||
Return the GMT representation of this time zone object.
Arguments:
Returns: string
GMT representation string.
|
code » | ||
Get the long time zone name for a given date/time.
Arguments:
Returns: string
The long time zone name.
|
code » | ||
Get the time zone offset in minutes WEST of UTC for a given date/time.
Arguments:
Returns: number
The time zone offset in minutes WEST of UTC.
|
code » | ||
Get the RFC representation of the time zone for a given date/time.
Arguments:
Returns: string
The RFC time zone string.
|
code » | ||
Get the short time zone name for given date/time.
Arguments:
Returns: string
The short time zone name.
|
code » | ||
Convert the contents of time zone object to a timeZoneData object, suitable
for passing to goog.i18n.TimeZone.createTimeZone.
Returns: !Object
A timeZoneData object (see the documentation for
goog.i18n.TimeZone.createTimeZone).
|
code » | ||
Return the time zone ID for this time zone.
Returns: string
The time zone ID.
|
code » | ||
Check if Daylight Saving Time is in effect at a given time in this time zone.
Arguments:
Returns: boolean
True if Daylight Saving Time is in effect.
|
code » |
![]()
The standard, non-daylight time zone offset, in minutes WEST of UTC.
|
Code » | |
![]()
The standard time zone id.
|
Code » | |
![]()
This array specifies the Daylight Saving Time transitions for this time
zone. This is a flat array of numbers which are interpreted in pairs:
[time1, adjustment1, time2, adjustment2, ...] where each time is a DST
transition point given as a number of hours since 00:00 UTC, January 1,
1970, and each adjustment is the adjustment to apply for times after the
DST transition, given as minutes EAST of UTC.
|
Code » | |
![]()
An array of strings that can have 2 or 4 elements. The first two elements
are the long and short names for standard time in this time zone, and the
last two elements (if present) are the long and short names for daylight
time in this time zone.
|
Code » |
Generate a GMT-relative string for a constant time zone offset.
|
code » | ||
Generate a POSIX time zone ID for a constant time zone offset.
|
code » | ||
Generate a UTC-relative string for a constant time zone offset.
|
code » | ||
This factory method creates a time zone object with a constant offset.
Arguments:
Returns: !goog.i18n.TimeZone
A time zone object with the given constant
offset. Note that the time zone ID of this object will use the POSIX
convention, which has a reversed sign ("Etc/GMT+8" means UTC-8 or PST).
|
code » | ||
This factory method creates a time zone instance. It takes either an object
containing complete time zone information, or a single number representing a
constant time zone offset. If the latter form is used, DST functionality is
not available.
Arguments:
Returns: !goog.i18n.TimeZone
A goog.i18n.TimeZone object for the given
time zone data.
|
code » |
![]()
The number of milliseconds in an hour.
|
Code » |
![]()
Indices into the array of time zone names.
Constants:
|
Code » |