Esc

timestamp_from_apollo

procedureextensionsince 0.36.1Source
  • macOS: timestamp_from_apollo works on macOS
  • Linux: timestamp_from_apollo works on Linux
  • Windows: timestamp_from_apollo works on Windows
  • Wasm: timestamp_from_apollo works on Wasm

Converts the Apollo epoch, rejecting subnanosecond precision instead of discarding it.

Signature

timestamp_from_apollo :: (
    value: Basic.Apollo_Time
) -> (Timestamp, Time_Error)
Example↗
instant, error := timestamp_from_apollo(APOLLO_TIME_FOR_JAN_1_1970);
assert(error.kind == .NONE && instant.seconds == 0);

See also