The TimeZoneInfo type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CopyFrom |
Copies a time zone info form the specified TimeZoneInfo object into the current instance.
| |
| GetTimeZone |
Returns a TimeZoneInfo instance for the time zone with supplied name.
| |
| ToLocalTime |
Converts the value of the utc time to a local time in this time zone.
| |
| ToString |
Gets display name of this time zone instance.
(Overrides Object..::..ToString()()()().) | |
| ToUniversalTime |
Converts the value of the local time to UTC time.
Note that there may be different possible interpretations at the daylight time boundaries.
|
Properties
| Name | Description | |
|---|---|---|
| CurrentTimeZone |
Gets the current time zone information.
| |
| DaylightBias |
Gets the difference, in minutes, between UTC and local time (in daylight savings time).
UTC = local time + bias.
| |
| DaylightName |
The time zone's name during daylight savings time (DST).
| |
| DaylightOffset |
Gets the daylight offset from UTC as a TimeSpan.
| |
| DisplayName |
The time zone's display name (e.g. '(GMT-05:00) Eastern Time (US and Canada)').
| |
| StandardBias |
Gets the difference, in minutes, between UTC and local time.
UTC = local time + bias.
| |
| StandardName |
The time zone's name during 'standard' time (i.e. not daylight savings).
| |
| StandardOffset |
Gets the standard offset from UTC as a TimeSpan.
| |
| TimeZoneNames |
Gets a string array of display time zone names supported in the local system.
| |
| TimeZones |
Gets a list of all time zones defined in the local system.
|