HLocalTime Constructor
HLocalTime(byte, byte, byte, int)
Initializes a new instance of the HLocalTime struct.
Declaration
public HLocalTime(byte hour, byte minute, byte second, int nanosecond)
Parameters
byte | hour | The hour value. |
byte | minute | The minute value. |
byte | second | The second value. |
int | nanosecond | The nanosecond value. |
Exceptions
ArgumentOutOfRangeException |
|
HLocalTime(DateTime)
Initializes a new instance of the HLocalTime struct.
Declaration
public HLocalTime(DateTime dateTime)
Parameters
DateTime | dateTime | The time. |
Remarks
The date part of the dateTime
is ignored.
HLocalTime(TimeSpan)
Initializes a new instance of the HLocalTime struct.
Declaration
public HLocalTime(TimeSpan timeSpan)
Parameters
TimeSpan | timeSpan | The time. |
Exceptions
ArgumentOutOfRangeException |
|
HLocalTime(TimeOnly)
Initializes a new instance of the HLocalTime struct.
Declaration
public HLocalTime(TimeOnly timeOnly)
Parameters
TimeOnly | timeOnly | The time. |