[]
The TimeZoneInfo class determines time zone properties. It can be used for conversion to/from utc times and local times and respect DST.
public class TimeZoneInfo
Name | Description |
---|---|
CurrentTimeZone | Gets the current time zone information. |
DaylightName | The time zone's name during daylight savings time (DST). |
DisplayName | The time zone's display name (e.g. '(GMT-05:00) Eastern Time (US and Canada)'). |
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. |
Name | Description |
---|---|
CopyFrom(TimeZoneInfo) | Copies a time zone info form the specified TimeZoneInfo object into the current instance. |
GetTimeZone(string) | Returns a TimeZoneInfo instance for the time zone with supplied name. |
ToLocalTime(DateTime) | Converts the value of the utc time to a local time in this time zone. |
ToString() | Gets display name of this time zone instance. |
ToUniversalTime(DateTime) | Converts the value of the local time to UTC time. Note that there may be different possible interpretations at the daylight time boundaries. |