OxL Reference

method i64.weeks

A period of this many weeks (7 calendar days each).

Example:

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

Since. 1.0.0-beta

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also