Function Epoch.isValid

Whether this value contains a valid finite epoch.

bool isValid() const pure nothrow @nogc @property @safe;

Example

Example checking whether an epoch is valid.

import geodesy;
assert(Epoch!double.fromDecimalYear(2000.0).isValid);
assert(!Epoch!double.init.isValid);