Function Epoch.fromDecimalYear

Construct a finite decimal-year epoch.

static Epoch!T fromDecimalYear(
  const T value
) @safe;

Throws

GeodesyValueException when value is not finite.

Example

Example constructing a decimal-year epoch.

import geodesy;
const epoch = Epoch!double.fromDecimalYear(1994.0);
assert(epoch.isValid);
}