getTimeZone (JavaScript)
Gets the TimeZone for the given ID.
Parameters |
Description |
str |
The ID for a TimeZone, either an abbreviation
such as "PST", a full name such as "America/Los_Angeles", or a custom
ID such as "GMT-8:00". Note that the support of abbreviations is for
JDK 1.1.x compatibility only and full names should be used. |
Return value |
Description |
TimeZone |
The specified TimeZone, or the GMT zone if the
given ID cannot be understood. |
Have feedback?
Google Analytics is used to store comments and ratings. To provide a comment or rating for a topic, click Accept All Cookies or Allow All in Cookie Preferences in the footer of this page.