TimeZone Properties |
The TimeZone type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Current |
Retrieves the TimeZone object based on the current system TimeZone.
|
![]() | ID |
The unique ID for this TimeZone. See TimeZonesZones for constants for common timezones.
|
![]() | MapId |
The Map ID of this TimeZone as extracted from the Windows Registry.
|
![]() | Name |
The name of the TimeZone.
|
![]() | Now |
Gets a date/time that is set to the current date and time on this computer, expressed as the time in this TimeZone.
|
![]() | ObservesDaylightTime |
Whether daylight saving time is observed in the timezone
|
![]() | OlsonName |
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.
|
![]() | Priority |
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):
|
![]() | RegIndex |
The Index for this TimeZone in the Windows registry.
|
![]() | RegKey |
The Windows registry key for this TimeZone.
Blank or null if this TimeZone was not loaded from the registry.
|
![]() | TimeZoneInfo |
Gets the internal TimeZoneInfo object for this TimeZone.
|
![]() ![]() | UTC |
Retrieves the TimeZone object for the UTC (GMT) timezone.
|