Esc

day_of_year

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

Returns the ordinal day, starting at one.

Signature

day_of_year :: (value: Date) -> s64
Example↗
day, _ := date(2024, 3, 1);
assert(day_of_year(day) == 61);

See also