HOffsetDateTime Struct
Namespace: Hazelcast.Models
Assembly: Hazelcast.Net.dll
Represents an Hazelcast TIMESTAMP_WITH_TIME_ZONE
primitive type value.
public readonly struct HOffsetDateTime : IEquatable<HOffsetDateTime>
Implements
Inherited Members
Remarks
The TIMESTAMP_WITH_TIME_ZONE
primitive type consists of a TIMESTAMP
LocalDateTime and a timezone Offset.
The offset ranges between MinOffset and MaxOffset inclusive. with a 1 second precision, smaller values being rounded and lost during serialization.
Constructors
HOffsetDateTime(HLocalDateTime, Int32) | Initializes a new instance of the HOffsetDateTime struct. |
HOffsetDateTime(HLocalDateTime, TimeSpan) | Initializes a new instance of the HOffsetDateTime struct. |
HOffsetDateTime(DateTime, TimeSpan) | Initializes a new instance of the HOffsetDateTime struct. |
HOffsetDateTime(DateTimeOffset) | Initializes a new instance of the HOffsetDateTime struct. |
Fields
Max | Gets the largest possible value of a HOffsetDateTime. |
MaxOffset | Gets the largest possible value of the offset part. |
Min | Gets the smallest possible value of a HOffsetDateTime. |
MinOffset | Gets the smallest possible value of the offset part. |
Properties
LocalDateTime | Gets the local date and time part. |
Offset | Gets the offset part. |
Methods
Equals(HOffsetDateTime) | |
Equals(Object) | |
GetHashCode() | |
Parse(String) | Converts the string representation of a date and time with timezone to its HOffsetDateTime equivalent. |
ToDateTimeOffset() | Converts the value of this instance to its DateTimeOffset equivalent. |
ToString() | |
TryParse(String, out HOffsetDateTime) | Converts the string representation of a date and time with timezone to its HOffsetDateTime equivalent. A return value indicates whether the operation succeeded. |
TryToDateTimeOffset(out DateTimeOffset) | Converts the value of this instance to its DateTimeOffset equivalent. A return value indicates whether the operation succeeded. |
Operators
Equality(HOffsetDateTime, HOffsetDateTime) | Implements the == operator. |
Explicit(HOffsetDateTime to DateTimeOffset) | Implements the HOffsetDateTime to DateTimeOffset conversion. |
Explicit(DateTimeOffset to HOffsetDateTime) | Implements the DateTimeOffset to HOffsetDateTime conversion. |
Inequality(HOffsetDateTime, HOffsetDateTime) | Implements the != operator. |