Function Epoch.decimalYear

Decimal-year representation.

T decimalYear() const pure nothrow @nogc @property @safe;

Example

Example reading the decimal-year representation.

import geodesy;
const epoch = Epoch!double.fromDecimalYear(2025.25);
assert(epoch.decimalYear == 2025.25);