OxL Reference

method i64.week

A period of one week (7 calendar days).

Example:

oxl✓ checked in CI
fn main() io {
  print("{(2026-11-03 + 1.week()).toIso()}")
}
Output
2026-11-10
pub(api) fn week() -> Period

Since. 1.0.0-beta

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also