Esc

Time_Of_Day

structextensionsince 0.36.1Source
  • macOS: Time_Of_Day works on macOS
  • Linux: Time_Of_Day works on Linux
  • Windows: Time_Of_Day works on Windows
  • Wasm: Time_Of_Day works on Wasm

Declaration

Time_Of_Day :: struct {
    hour: s8;    minute: s8;    second: s8;    nanosecond: s32;}

A clock reading without a zone.

Example
t, error := time_of_day(2, 30, 0);
assert(error.kind == .NONE && t.hour == 2 && t.minute == 30);

See also