TimeZoneInfo ClassTimeZoneInfo ClassTimeZoneInfo Class

Represents any time zone in the world.

Inheritance Hierarchy

Syntax

Public Class TimeZoneInfo
public class TimeZoneInfo
public:
ref class TimeZoneInfo
 
The TimeZoneInfoTimeZoneInfoTimeZoneInfo type exposes the following members.

Constructors

 ConstructorDescription
Public methodTimeZoneInfoTimeZoneInfoTimeZoneInfo Initializes a new instance of the TimeZoneInfoTimeZoneInfoTimeZoneInfo class.

Top

Properties

 PropertyDescription
Public propertyBaseUtcOffsetBaseUtcOffsetBaseUtcOffset Gets the time difference between the current time zone's standard time and Coordinated Universal Time (UTC).
Public propertyDaylightNameDaylightNameDaylightName Gets the display name for the current time zone's daylight saving time.
Public propertyDisplayNameDisplayNameDisplayName Gets the general display name that represents the time zone.
Public propertyIdIdId Gets the time zone identifier.
Public propertyStandardNameStandardNameStandardName Gets the display name for the time zone's standard time.
Public propertySupportsDaylightSavingTimeSupportsDaylightSavingTimeSupportsDaylightSavingTime Gets a value indicating whether the time zone has any daylight saving time rules.

Top

Methods

 MethodDescription
Public methodAdjust (DateTimeWithZone)Adjust (DateTimeWithZone)Adjust (DateTimeWithZone) Adjusts the specified DateTimeWithZoneDateTimeWithZoneDateTimeWithZone to the timezone represented by this instance.
Public methodAdjust (DateWithZone)Adjust (DateWithZone)Adjust (DateWithZone) Adjusts the specified DateWithZoneDateWithZoneDateWithZone to the timezone represented by this instance.
Public methodAdjust (TimeWithZone)Adjust (TimeWithZone)Adjust (TimeWithZone) Adjusts the specified date time with zone.
Public methodObject.EqualsObject.EqualsObject::Equals Determines whether the specified objectObjectobject is equal to the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::Finalize Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject is reclaimed by garbage collection. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodstaticFindSystemTimeZoneByIdFindSystemTimeZoneByIdFindSystemTimeZoneById Retrieves a TimeZoneInfoTimeZoneInfoTimeZoneInfo object from the registry based on its identifier.
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCode Serves as a hash function for a particular type. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToString Returns a stringStringString that represents the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)

Top