Table of Contents

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

Day int

Day of the month, 1–31.

Hour int

Hour, 0–24. Hour 24 is midnight at the end of the day.

Properties

Day

Day of the month, 1–31.

public int Day { get; init; }

Property Value

int

Hour

Hour, 0–24. Hour 24 is midnight at the end of the day.

public int Hour { get; init; }

Property Value

int

Methods

ToDateTimeOffset(DateTimeOffset)

Resolves to a full UTC timestamp; see ToDateTimeOffset(DateTimeOffset).

public DateTimeOffset ToDateTimeOffset(DateTimeOffset reference)

Parameters

reference DateTimeOffset

A moment close to the report.

Returns

DateTimeOffset

The resolved UTC timestamp.

Exceptions

ArgumentOutOfRangeException

As for ToDateTimeOffset(DateTimeOffset): an invalid Day, or a reference at the very start or end of the range of DateTimeOffset.