method Date.dayOfYear
1-based day of the year.
Example:
use std.time { Date }
fn main() io {
print("{Date.of(2026, 2, 1)!.dayOfYear()}")
}Output
32
pub(api) fn dayOfYear() -> i64Since. 1.0.0-beta
Returns
i64
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1388