TimeZone StructureTimeZone StructureTimeZone Structure

Represents a time zone. This is a whole number of minutes in the range -14:00 to 14:00.

Syntax

Public NotInheritable  TimeZone _
        Implements IComparable(Of TimeZone), _
                   IEquatable(Of TimeZone)
public sealed  TimeZone : IComparable<TimeZone>,
        IEquatable<TimeZone>
public:
value class TimeZone sealed : IComparable<TimeZone>,
        IEquatable<TimeZone>
 
The TimeZoneTimeZoneTimeZone type exposes the following members.

Constructors

 ConstructorDescription
Public methodTimeZone (int)TimeZone (Integer)TimeZone (int) Initializes a new instance of the TimeZoneTimeZoneTimeZone structure with the specified number of minutes.
Public methodTimeZone (TimeSpan)TimeZone (TimeSpan)TimeZone (TimeSpan) Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a TimeSpanTimeSpanTimeSpan.
Public methodTimeZone (TimeZone)TimeZone (TimeZone)TimeZone (TimeZone^) Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a TimeZoneTimeZoneTimeZone.
Public methodTimeZone (DayTimeDuration)TimeZone (DayTimeDuration)TimeZone (DayTimeDuration) Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a DayTimeDurationDayTimeDurationDayTimeDuration.

Top

Properties

 PropertyDescription
Public propertystaticCurrentTimeZoneCurrentTimeZoneCurrentTimeZone Gets the time zone of the current computer system.
Public propertyHoursHoursHours Gets the hours component of the current TimeZoneTimeZoneTimeZone.
Public propertyMinutesMinutesMinutes Gets the minutes component of the current TimeZoneTimeZoneTimeZone.
Public propertyTotalMinutesTotalMinutesTotalMinutes Gets the value of the current TimeZoneTimeZoneTimeZone expressed as a number of minutes from UTC.

Top

Methods

 MethodDescription
Public methodstaticCompareCompareCompare Compares two specified TimeZoneTimeZoneTimeZone values.
Public methodCompareToCompareToCompareTo Compares this instance to a specified TimeZoneTimeZoneTimeZone and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified TimeZoneTimeZoneTimeZone.
Public methodEquals (object)Equals (Object)Equals (object^) Determines whether this instance is equal to a specified object. (Overrides ValueType.EqualsValueType.EqualsValueType::Equals)
Public methodEquals (TimeZone)Equals (TimeZone)Equals (TimeZone) Indicates whether this instance is equal to another TimeZoneTimeZoneTimeZone.
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 methodGetHashCodeGetHashCodeGetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCodeValueType.GetHashCodeValueType::GetHashCode)
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 methodstaticParseParseParse Converts a lexical representation to its TimeZoneTimeZoneTimeZone equivalent.
Public methodToDayTimeDurationToDayTimeDurationToDayTimeDuration Returns the value of the current TimeZoneTimeZoneTimeZone expressed as a DayTimeDurationDayTimeDurationDayTimeDuration.
Public methodToStringToStringToString Returns the canonical lexical representation of this TimeZoneTimeZoneTimeZone. (Overrides ValueType.ToStringValueType.ToStringValueType::ToString)
Public methodstaticTryConvertTryConvertTryConvert Tries to construct a TimeZoneTimeZoneTimeZone from a DayTimeDurationDayTimeDurationDayTimeDuration.
Public methodstaticTryParseTryParseTryParse Converts a lexical representation to its TimeZoneTimeZoneTimeZone equivalent. A return value indicates whether the conversion succeeded or failed.

Top

Operators

 OperatorDescription
Public operatorstaticEqualityEqualityEquality Indicates whether a specified TimeZoneTimeZoneTimeZone is equal to another specified TimeZoneTimeZoneTimeZone.
Public operatorstaticGreaterThanGreaterThanGreaterThan Indicates whether a specified TimeZoneTimeZoneTimeZone is greater than another specified TimeZoneTimeZoneTimeZone.
Public operatorstaticInequalityInequalityInequality Indicates whether a specified TimeZoneTimeZoneTimeZone is not equal to another specified TimeZoneTimeZoneTimeZone.
Public operatorstaticLessThanLessThanLessThan Indicates whether a specified TimeZoneTimeZoneTimeZone is less than another specified TimeZoneTimeZoneTimeZone.

Top

Fields

 FieldDescription
Public fieldstaticMaxValueMaxValueMaxValue The maximum TimeZoneTimeZoneTimeZone value. This field is read-only.
Public fieldstaticMinValueMinValueMinValue The minimum TimeZoneTimeZoneTimeZone value. This field is read-only.
Public fieldstaticUtcUtcUtc The Coordinated Universal Time (UTC) zone. This field is read-only.

Top