Click or drag to resize

TimeZone Properties

The TimeZone type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberCurrent
Retrieves the TimeZone object based on the current system TimeZone.
Public propertyID
The unique ID for this TimeZone. See TimeZonesZones for constants for common timezones.
Public propertyMapId
The Map ID of this TimeZone as extracted from the Windows Registry.
Public propertyName
The name of the TimeZone.
Public propertyNow
Gets a date/time that is set to the current date and time on this computer, expressed as the time in this TimeZone.
Public propertyObservesDaylightTime
Whether daylight saving time is observed in the timezone
Public propertyOlsonName
Returns the name of the Olson timezone used in iCal attachments. These correspond to the IANA time zone database, often referred to as the Olson database: http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml. These timezone names as strings like America/New_York and Europe/Paris.
Public propertyPriority
When performing timezone detection based on browser UTC offset it is generally impossible to determine a unique timezone since at any point in time there are generally a few timezones for each UTC offest that match. Priority is used to determine which, of multiple matches, to prefer -- highest priority wins. The default priorities are as follows (otherwise zero):
  • 10 - U.S. Standard (primary US timezones)
  • 9 - U.S. Subzones (secondary US timezones, specifically Arizona and Indiana-East)
  • 9 - European common
  • 8 - Canadian
  • 7 - European other
  • 7 - Australian
  • 6 - New Zealand
Note that there is no real chance of collision between most of these groupings, e.g. European, US/Canadian, and Australian/New Zealand. There is some chance of collision between the U.S. primary and secondary timezones in particular.
Public propertyRegIndex
The Index for this TimeZone in the Windows registry.
Public propertyRegKey
The Windows registry key for this TimeZone. Blank or null if this TimeZone was not loaded from the registry.
Public propertyTimeZoneInfo
Gets the internal TimeZoneInfo object for this TimeZone.
Public propertyStatic memberUTC
Retrieves the TimeZone object for the UTC (GMT) timezone.
Top
See Also