TimeZoneInfo Members
.NET Framework 3.5
Represents any time zone in the world.
The TimeZoneInfo type exposes the following members.
| Name | Description | |
|---|---|---|
|
ClearCachedData | Clears cached time zone data. |
|
ConvertTime | Overloaded. Converts a time to the time in a particular time zone. |
|
ConvertTimeBySystemTimeZoneId | Overloaded. Converts a time to the time in another time zone based on a time zone identifier. |
|
ConvertTimeFromUtc | Converts a Coordinated Universal Time (UTC) to the time in a specified time zone. |
|
ConvertTimeToUtc | Overloaded. Converts a date and time to Coordinated Universal Time (UTC). |
|
CreateCustomTimeZone | Overloaded. Defines a time zone that is not found on the local computer. |
|
Equals | Overloaded. Determines whether two TimeZoneInfo objects are equal. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FindSystemTimeZoneById | Retrieves a TimeZoneInfo object from the registry based on its identifier. |
|
FromSerializedString | Deserializes a string to re-create an original serialized TimeZoneInfo object. |
|
GetAdjustmentRules | Retrieves an array of TimeZoneInfo.AdjustmentRule objects that apply to the current TimeZoneInfo object. |
|
GetAmbiguousTimeOffsets | Overloaded. Returns information about the possible dates and times that an ambiguous date and time can be mapped to. |
|
GetHashCode | Serves as a hash function for hashing algorithms and data structures such as hash tables. (Overrides Object.GetHashCode().) |
|
GetSystemTimeZones | Returns a sorted collection of all the time zones about which information is available on the local system. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
GetUtcOffset | Overloaded. Calculates the offset or difference between the time in this time zone and Coordinated Universal Time (UTC) for a particular date and time. |
|
HasSameRules | Indicates whether the current object and another TimeZoneInfo object have the same adjustment rules. |
|
IsAmbiguousTime | Overloaded. Determines whether a particular date and time in a particular time zone is ambiguous and can be mapped to two or more Coordinated Universal Time (UTC) times. |
|
IsDaylightSavingTime | Overloaded. Indicates whether a specified date and time falls in the range of daylight saving time for the current TimeZoneInfo object's time zone. |
|
IsInvalidTime | Indicates whether a particular date and time is invalid. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToSerializedString | Converts the current TimeZoneInfo object to a serialized string. |
|
ToString | Returns the current TimeZoneInfo object's display name. (Overrides Object.ToString().) |
| Name | Description | |
|---|---|---|
|
BaseUtcOffset | Gets the time difference between the current time zone's standard time and Coordinated Universal Time (UTC). |
|
DaylightName | Gets the localized display name for the current time zone's daylight saving time. |
|
DisplayName | Gets the localized general display name that represents the time zone. |
|
Id | Gets the time zone identifier. |
|
Local | Gets a TimeZoneInfo object that represents the local time zone. |
|
StandardName | Gets the localized display name for the time zone's standard time. |
|
SupportsDaylightSavingTime | Gets a value indicating whether the time zone has any daylight saving time rules. |
|
Utc | Gets a TimeZoneInfo object that represents the Coordinated Universal Time (UTC) zone. |
| Name | Description | |
|---|---|---|
|
ISerializable.GetObjectData | Infrastructure. Populates a SerializationInfo object with the data needed to serialize the current TimeZoneInfo object. |
|
IDeserializationCallback.OnDeserialization | Infrastructure. Runs when the deserialization of an object has been completed. |