.NET Client Documentation
5.5.0
Search Results for

    Show / Hide Table of Contents

    HOffsetDateTime Constructor

    HOffsetDateTime(HLocalDateTime, TimeSpan)

    Initializes a new instance of the HOffsetDateTime struct.

    Declaration
    public HOffsetDateTime(HLocalDateTime localDateTime, TimeSpan offset = default)
    Parameters
    HLocalDateTime localDateTime

    The local date and time part.

    TimeSpan offset

    The offset part.

    Exceptions
    ArgumentOutOfRangeException

    offset is outside of the accepted range.

    HOffsetDateTime(HLocalDateTime, int)

    Initializes a new instance of the HOffsetDateTime struct.

    Declaration
    public HOffsetDateTime(HLocalDateTime localDateTime, int offsetSeconds = 0)
    Parameters
    HLocalDateTime localDateTime

    The local date and time part.

    int offsetSeconds

    The offset part.

    Exceptions
    ArgumentOutOfRangeException

    offsetSeconds is outside of the accepted range.

    HOffsetDateTime(DateTime, TimeSpan)

    Initializes a new instance of the HOffsetDateTime struct.

    Declaration
    public HOffsetDateTime(DateTime localDateTime, TimeSpan offset = default)
    Parameters
    DateTime localDateTime

    The local date and time part.

    TimeSpan offset

    The offset part.

    Exceptions
    ArgumentOutOfRangeException

    offset is outside of the accepted range.

    HOffsetDateTime(DateTimeOffset)

    Initializes a new instance of the HOffsetDateTime struct.

    Declaration
    public HOffsetDateTime(DateTimeOffset dateTimeOffset)
    Parameters
    DateTimeOffset dateTimeOffset

    The date, time and offset.

    Exceptions
    ArgumentOutOfRangeException

    dateTimeOffset offset is outside of the accepted range.

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