Esc

Date_Time

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

Declaration

Date_Time :: struct {
    date: Date;    time: Time_Of_Day;}

A wall-clock value, not an instant.

Example↗
wall, error := date_time(2024, 3, 10, 2, 30, 0);
assert(error.kind == .NONE && wall.date.day == 10 && wall.time.hour == 2);

See also