TimeWithZone StructureTimeWithZone StructureTimeWithZone Structure

Represents an instant of time that recurs every day. The corresponding XML Schema type is xs:time.

Syntax

Public NotInheritable  TimeWithZone _
        Implements IEquatable(Of TimeWithZone)
public sealed  TimeWithZone : IEquatable<TimeWithZone>
public:
value class TimeWithZone sealed : IEquatable<TimeWithZone>
 
The TimeWithZoneTimeWithZoneTimeWithZone type exposes the following members.

Constructors

 ConstructorDescription
Public methodTimeWithZone (decimal, TimeZone?)TimeWithZone (Decimal, Nullable(Of TimeZone))TimeWithZone (decimal, Nullable<TimeZone>) Initializes a new instance of the TimeWithZoneTimeWithZoneTimeWithZone structure with the specified number of seconds past midnight, in the specified time zone.
Public methodTimeWithZone (int, int, decimal, TimeZone?)TimeWithZone (Integer, Integer, Decimal, Nullable(Of TimeZone))TimeWithZone (int, int, decimal, Nullable<TimeZone>) Initializes a new instance of the TimeWithZoneTimeWithZoneTimeWithZone structure with the specified hour, minute, second and time zone components.

Top

Properties

 PropertyDescription
Public propertyHourHourHour Gets the hour component of this TimeWithZoneTimeWithZoneTimeWithZone.
Public propertyMinuteMinuteMinute Gets the minute component of this TimeWithZoneTimeWithZoneTimeWithZone.
Public propertySecondSecondSecond Gets the seconds component of this TimeWithZoneTimeWithZoneTimeWithZone.
Public propertySecondsPastMidnightSecondsPastMidnightSecondsPastMidnight Gets the number of whole and partial seconds from midnight.
Public propertyTimeZoneTimeZoneTimeZone Gets the optional time zone component of this TimeWithZoneTimeWithZoneTimeWithZone.

Top

Methods

 MethodDescription
Public methodstaticAdd (DayTimeDuration, TimeWithZone)Add (DayTimeDuration, TimeWithZone)Add (DayTimeDuration, TimeWithZone) Adds a TimeWithZoneTimeWithZoneTimeWithZone to a DayTimeDurationDayTimeDurationDayTimeDuration.
Public methodstaticAdd (TimeWithZone, DayTimeDuration)Add (TimeWithZone, DayTimeDuration)Add (TimeWithZone, DayTimeDuration) Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a TimeWithZoneTimeWithZoneTimeWithZone.
Public methodAdjustToTimeZoneAdjustToTimeZoneAdjustToTimeZone Adjusts a TimeWithZoneTimeWithZoneTimeWithZone structure to a specific time zone, or to no time zone.
Public methodstaticCompareCompareCompare Compares a TimeWithZoneTimeWithZoneTimeWithZone with another TimeWithZoneTimeWithZoneTimeWithZone.
Public methodEquals (object)Equals (Object)Equals (object^) Determines whether this instance is equal to a specified object. (Overrides ValueType.EqualsValueType.EqualsValueType::Equals)
Public methodEquals (TimeWithZone)Equals (TimeWithZone)Equals (TimeWithZone) Indicates whether this instance is equal to another TimeWithZoneTimeWithZoneTimeWithZone.
Public methodstaticEquals (TimeWithZone, TimeWithZone, TimeZone)Equals (TimeWithZone, TimeWithZone, TimeZone)Equals (TimeWithZone, TimeWithZone, TimeZone) Indicates whether a specified TimeWithZoneTimeWithZoneTimeWithZone is equal to another specified TimeWithZoneTimeWithZoneTimeWithZone given the supplied implicit time zone.
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 of an xs:time to its TimeWithZoneTimeWithZoneTimeWithZone equivalent.
Public methodstaticSubtract (TimeWithZone, DayTimeDuration)Subtract (TimeWithZone, DayTimeDuration)Subtract (TimeWithZone, DayTimeDuration) Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a TimeWithZoneTimeWithZoneTimeWithZone.
Public methodstaticSubtract (TimeWithZone, TimeWithZone)Subtract (TimeWithZone, TimeWithZone)Subtract (TimeWithZone, TimeWithZone) Subtracts a TimeWithZoneTimeWithZoneTimeWithZone from another TimeWithZoneTimeWithZoneTimeWithZone.
Public methodstaticSubtract (TimeWithZone, TimeWithZone, TimeZone)Subtract (TimeWithZone, TimeWithZone, TimeZone)Subtract (TimeWithZone, TimeWithZone, TimeZone) Subtracts two specified TimeWithZoneTimeWithZoneTimeWithZone values.
Public methodToString ()ToString ()ToString () Returns the canonical lexical representation of this TimeWithZoneTimeWithZoneTimeWithZone. (Overrides ValueType.ToStringValueType.ToStringValueType::ToString)
Public methodToString (string, CultureInfo)ToString (String, CultureInfo)ToString (String^, CultureInfo^) Converts the value of the current TimeWithZoneTimeWithZoneTimeWithZone object to its equivalent string representation using the specified format and culture-specific format information.
Public methodstaticTryParseTryParseTryParse Converts a lexical representation of an xs:time to its TimeWithZoneTimeWithZoneTimeWithZone equivalent. A return value indicates whether the conversion succeeded or failed.

Top

Operators

 OperatorDescription
Public operatorstaticAddition (DayTimeDuration, TimeWithZone)Addition (DayTimeDuration, TimeWithZone)Addition (DayTimeDuration, TimeWithZone) Adds a TimeWithZoneTimeWithZoneTimeWithZone to a DayTimeDurationDayTimeDurationDayTimeDuration.
Public operatorstaticAddition (TimeWithZone, DayTimeDuration)Addition (TimeWithZone, DayTimeDuration)Addition (TimeWithZone, DayTimeDuration) Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a TimeWithZoneTimeWithZoneTimeWithZone.
Public operatorstaticEqualityEqualityEquality Indicates whether a specified TimeWithZoneTimeWithZoneTimeWithZone is equal to another specified TimeWithZoneTimeWithZoneTimeWithZone.
Public operatorstaticInequalityInequalityInequality Returns a value indicating whether two instances of TimeWithZoneTimeWithZoneTimeWithZone are not equal.
Public operatorstaticSubtraction (TimeWithZone, DayTimeDuration)Subtraction (TimeWithZone, DayTimeDuration)Subtraction (TimeWithZone, DayTimeDuration) Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a TimeWithZoneTimeWithZoneTimeWithZone.
Public operatorstaticSubtraction (TimeWithZone, TimeWithZone)Subtraction (TimeWithZone, TimeWithZone)Subtraction (TimeWithZone, TimeWithZone) Subtracts a TimeWithZoneTimeWithZoneTimeWithZone from another TimeWithZoneTimeWithZoneTimeWithZone.

Top

Remarks