TimeZoneInfo Methods
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ClearCachedData() | Clears cached time zone data. |
![]() ![]() | ConvertTime(DateTime, TimeZoneInfo^) | Converts a time to the time in a particular time zone. |
![]() ![]() | ConvertTime(DateTime, TimeZoneInfo^, TimeZoneInfo^) | Converts a time from one time zone to another. |
![]() ![]() | ConvertTime(DateTimeOffset, TimeZoneInfo^) | Converts a time to the time in a particular time zone. |
![]() ![]() | ConvertTimeBySystemTimeZoneId(DateTime, String^) | Converts a time to the time in another time zone based on the time zone's identifier. |
![]() ![]() | ConvertTimeBySystemTimeZoneId(DateTime, String^, String^) | Converts a time from one time zone to another based on time zone identifiers. |
![]() ![]() | ConvertTimeBySystemTimeZoneId(DateTimeOffset, String^) | Converts a time to the time in another time zone based on the time zone's identifier. |
![]() ![]() | ConvertTimeFromUtc(DateTime, TimeZoneInfo^) | Converts a Coordinated Universal Time (UTC) to the time in a specified time zone. |
![]() ![]() | ConvertTimeToUtc(DateTime) | Converts the specified date and time to Coordinated Universal Time (UTC). |
![]() ![]() | ConvertTimeToUtc(DateTime, TimeZoneInfo^) | Converts the time in a specified time zone to Coordinated Universal Time (UTC). |
![]() ![]() | CreateCustomTimeZone(String^, TimeSpan, String^, String^) | Creates a custom time zone with a specified identifier, an offset from Coordinated Universal Time (UTC), a display name, and a standard time display name. |
![]() ![]() | CreateCustomTimeZone(String^, TimeSpan, String^, String^, String^, array<TimeZoneInfo::AdjustmentRule^>^) | Creates a custom time zone with a specified identifier, an offset from Coordinated Universal Time (UTC), a display name, a standard time name, a daylight saving time name, and daylight saving time rules. |
![]() ![]() | CreateCustomTimeZone(String^, TimeSpan, String^, String^, String^, array<TimeZoneInfo::AdjustmentRule^>^, Boolean) | Creates a custom time zone with a specified identifier, an offset from Coordinated Universal Time (UTC), a display name, a standard time name, a daylight saving time name, daylight saving time rules, and a value that indicates whether the returned object reflects daylight saving time information. |
![]() | Equals(Object^) | Determines whether the current TimeZoneInfo object and another object are equal.(Overrides Object::Equals(Object^).) |
![]() | Equals(TimeZoneInfo^) | Determines whether the current TimeZoneInfo object and another TimeZoneInfo object are equal. |
![]() ![]() | FindSystemTimeZoneById(String^) | Retrieves a TimeZoneInfo object from the registry based on its identifier. |
![]() ![]() | FromSerializedString(String^) | 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(DateTime) | Returns information about the possible dates and times that an ambiguous date and time can be mapped to. |
![]() | GetAmbiguousTimeOffsets(DateTimeOffset) | 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() | |
![]() | GetUtcOffset(DateTime) | Calculates the offset or difference between the time in this time zone and Coordinated Universal Time (UTC) for a particular date and time. |
![]() | GetUtcOffset(DateTimeOffset) | Calculates the offset or difference between the time in this time zone and Coordinated Universal Time (UTC) for a particular date and time. |
![]() | HasSameRules(TimeZoneInfo^) | Indicates whether the current object and another TimeZoneInfo object have the same adjustment rules. |
![]() | IsAmbiguousTime(DateTime) | 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. |
![]() | IsAmbiguousTime(DateTimeOffset) | 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(DateTime) | Indicates whether a specified date and time falls in the range of daylight saving time for the time zone of the current TimeZoneInfo object. |
![]() | IsDaylightSavingTime(DateTimeOffset) | Indicates whether a specified date and time falls in the range of daylight saving time for the time zone of the current TimeZoneInfo object. |
![]() | IsInvalidTime(DateTime) | Indicates whether a particular date and time is invalid. |
![]() | ToSerializedString() | Converts the current TimeZoneInfo object to a serialized string. |
![]() | ToString() | Returns the current TimeZoneInfo object's display name.(Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | IDeserializationCallback::OnDeserialization(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Runs when the deserialization of an object has been completed. |
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | This API supports the product infrastructure and is not intended to be used directly from your code. Populates a SerializationInfo object with the data needed to serialize the current TimeZoneInfo object. |



