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