OxL Reference

method Date.plusDays

The date n days later (negative: earlier).

Example:

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

fn main() io {
  print("{Date.of(2026, 12, 30)!.plusDays(3).toIso()}")
}
Output
2027-01-02
pub(api) fn plusDays(n: i64) -> Date

Since. 1.0.0-beta

Parameters

NameType
ni64

Returns

Date

Effects

none declared (pure unless the body says otherwise)

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

See also