Esc

timestamp_now

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

Reads Basic.current_time_consensus and converts its Apollo epoch; no new clock path.

Signature

timestamp_now :: () -> (Timestamp, Time_Error)
Example↗
instant, error := timestamp_now();
assert(error.kind == .NONE);

See also