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
Constructor | Description | |
---|---|---|
TimeZone (int)TimeZone (Integer)TimeZone (int) | Initializes a new instance of the TimeZoneTimeZoneTimeZone structure with the specified number of minutes. | |
TimeZone (TimeSpan)TimeZone (TimeSpan)TimeZone (TimeSpan) | Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a TimeSpanTimeSpanTimeSpan. | |
TimeZone (TimeZone)TimeZone (TimeZone)TimeZone (TimeZone^) | Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a TimeZoneTimeZoneTimeZone. | |
TimeZone (DayTimeDuration)TimeZone (DayTimeDuration)TimeZone (DayTimeDuration) | Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a DayTimeDurationDayTimeDurationDayTimeDuration. |
Properties
Property | Description | |
---|---|---|
CurrentTimeZoneCurrentTimeZoneCurrentTimeZone | Gets the time zone of the current computer system. | |
HoursHoursHours | Gets the hours component of the current TimeZoneTimeZoneTimeZone. | |
MinutesMinutesMinutes | Gets the minutes component of the current TimeZoneTimeZoneTimeZone. | |
TotalMinutesTotalMinutesTotalMinutes | Gets the value of the current TimeZoneTimeZoneTimeZone expressed as a number of minutes from UTC. |
Methods
Method | Description | |
---|---|---|
CompareCompareCompare | Compares two specified TimeZoneTimeZoneTimeZone values. | |
CompareToCompareToCompareTo | 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. | |
Equals (object)Equals (Object)Equals (object^) | Determines whether this instance is equal to a specified object. (Overrides ValueType.EqualsValueType.EqualsValueType::Equals) | |
Equals (TimeZone)Equals (TimeZone)Equals (TimeZone) | Indicates whether this instance is equal to another TimeZoneTimeZoneTimeZone. | |
Object.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) | |
GetHashCodeGetHashCodeGetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCodeValueType.GetHashCodeValueType::GetHashCode) | |
Object.GetTypeObject.GetTypeObject::GetType | Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object) | |
Object.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone | Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object) | |
ParseParseParse | Converts a lexical representation to its TimeZoneTimeZoneTimeZone equivalent. | |
ToDayTimeDurationToDayTimeDurationToDayTimeDuration | Returns the value of the current TimeZoneTimeZoneTimeZone expressed as a DayTimeDurationDayTimeDurationDayTimeDuration. | |
ToStringToStringToString | Returns the canonical lexical representation of this TimeZoneTimeZoneTimeZone. (Overrides ValueType.ToStringValueType.ToStringValueType::ToString) | |
TryConvertTryConvertTryConvert | Tries to construct a TimeZoneTimeZoneTimeZone from a DayTimeDurationDayTimeDurationDayTimeDuration. | |
TryParseTryParseTryParse | Converts a lexical representation to its TimeZoneTimeZoneTimeZone equivalent. A return value indicates whether the conversion succeeded or failed. |
Operators
Operator | Description | |
---|---|---|
EqualityEqualityEquality | Indicates whether a specified TimeZoneTimeZoneTimeZone is equal to another specified TimeZoneTimeZoneTimeZone. | |
GreaterThanGreaterThanGreaterThan | Indicates whether a specified TimeZoneTimeZoneTimeZone is greater than another specified TimeZoneTimeZoneTimeZone. | |
InequalityInequalityInequality | Indicates whether a specified TimeZoneTimeZoneTimeZone is not equal to another specified TimeZoneTimeZoneTimeZone. | |
LessThanLessThanLessThan | Indicates whether a specified TimeZoneTimeZoneTimeZone is less than another specified TimeZoneTimeZoneTimeZone. |
Fields
Remarks
The TimeZoneTimeZoneTimeZone structure is used to represent the time zone component of the DateTimeWithZoneDateTimeWithZoneDateTimeWithZone, DateWithZoneDateWithZoneDateWithZone, TimeWithZoneTimeWithZoneTimeWithZone, GDayGDayGDay, GMonthGMonthGMonth, GYearGYearGYear, GMonthDayGMonthDayGMonthDay and GYearMonthGYearMonthGYearMonth structures.