OxL Reference

method Date.dayOfYear

1-based day of the year.

Example:

oxl✓ checked in CI
use std.time { Date }

fn main() io {
  print("{Date.of(2026, 2, 1)!.dayOfYear()}")
}
Output
32
pub(api) fn dayOfYear() -> i64

Since. 1.0.0-beta

Returns

i64

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:1388

See also