Class OffsetTime
Represents a time value with a UTC offset
public sealed class OffsetTime : TemporalValue, IConvertible, IEquatable<OffsetTime>, IComparable, IComparable<OffsetTime>
- Inheritance
-
OffsetTime
- Implements
- Inherited Members
- Extension Methods
Constructors
- OffsetTime(DateTime, TimeSpan)
Initializes a new instance of OffsetTime from time components of given DateTime value
- OffsetTime(int, int, int, int)
Initializes a new instance of OffsetTime from individual time components
- OffsetTime(int, int, int, int, int)
Initializes a new instance of OffsetTime from individual time components
- OffsetTime(TimeSpan, TimeSpan)
Initializes a new instance of OffsetTime from given TimeSpan value
Fields
- Comparer
Default comparer for OffsetTime values.
Properties
- Hour
Gets the hour component of this instance.
- Minute
Gets the minute component of this instance.
- Nanosecond
Gets the nanosecond component of this instance.
- OffsetSeconds
Offset in seconds precision
- Second
Gets the second component of this instance.
Methods
- CompareTo(OffsetTime)
Compares the value of this instance to a specified OffsetTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
- CompareTo(object)
Compares the value of this instance to a specified object which is expected to be a OffsetTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified OffsetTime value.
- Equals(OffsetTime)
Returns a value indicating whether the value of this instance is equal to the value of the specified OffsetTime instance.
- Equals(object)
Returns a value indicating whether this instance is equal to a specified object.
- GetHashCode()
Returns the hash code for this instance.
- ToString()
Converts the value of the current OffsetTime object to its equivalent string representation.
Operators
- operator >(OffsetTime, OffsetTime)
Determines whether one specified OffsetTime is later than another specified OffsetTime.
- operator >=(OffsetTime, OffsetTime)
Determines whether one specified OffsetTime represents a duration that is the same as or earlier than the other specified OffsetTime
- operator <(OffsetTime, OffsetTime)
Determines whether one specified OffsetTime is earlier than another specified OffsetTime.
- operator <=(OffsetTime, OffsetTime)
Determines whether one specified OffsetTime represents a duration that is the same as or later than the other specified OffsetTime