.NET Client Documentation
5.5.0
Search Results for

    Show / Hide Table of Contents

    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
    IEquatable<HOffsetDateTime>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Remarks

    The TIMESTAMP_WITH_TIME_ZONE primitive type consists of a TIMESTAMPLocalDateTime 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

    Name Description
    HOffsetDateTime(HLocalDateTime, int)

    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

    Name Description
    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

    Name Description
    LocalDateTime

    Gets the local date and time part.

    Offset

    Gets the offset part.

    Methods

    Name Description
    Equals(HOffsetDateTime)

    Indicates whether the current object is equal to another object of the same type.

    Equals(object?)

    Indicates whether this instance and a specified object are equal.

    GetHashCode()

    Returns the hash code for this instance.

    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()

    Returns the fully qualified type name of this instance.

    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

    Name Description
    operator ==(HOffsetDateTime, HOffsetDateTime)

    Implements the == operator.

    explicit operator DateTimeOffset(HOffsetDateTime)

    Implements the HOffsetDateTime to DateTimeOffset conversion.

    explicit operator HOffsetDateTime(DateTimeOffset)

    Implements the DateTimeOffset to HOffsetDateTime conversion.

    operator !=(HOffsetDateTime, HOffsetDateTime)

    Implements the != operator.

    In this article
    Back to top Copyright © 2010-2024 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.