Struct DayHour
- Namespace
- Cavok
- Assembly
- Cavok.dll
A day of the month with a whole UTC hour, as used in TAF periods (for example 2106).
public readonly record struct DayHour : IEquatable<DayHour>
- Implements
- Inherited Members
Constructors
DayHour(int, int)
A day of the month with a whole UTC hour, as used in TAF periods (for example 2106).
public DayHour(int Day, int Hour)
Parameters
Properties
Day
Day of the month, 1–31.
public int Day { get; init; }
Property Value
Hour
Hour, 0–24. Hour 24 is midnight at the end of the day.
public int Hour { get; init; }
Property Value
Methods
ToDateTimeOffset(DateTimeOffset)
Resolves to a full UTC timestamp; see ToDateTimeOffset(DateTimeOffset).
public DateTimeOffset ToDateTimeOffset(DateTimeOffset reference)
Parameters
referenceDateTimeOffsetA moment close to the report.
Returns
- DateTimeOffset
The resolved UTC timestamp.
Exceptions
- ArgumentOutOfRangeException
As for ToDateTimeOffset(DateTimeOffset): an invalid Day, or a
referenceat the very start or end of the range of DateTimeOffset.