op Date.-
The date before subtracting a calendar period (the day is clamped to the length of the month).
Example:
fn main() io {
print("{(2026-03-31 - 1.month()).toIso()}")
}Output
2026-02-28
pub(api) static op -(d: Date, p: Period) -> DateSince. 1.0.0-beta
Parameters
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1523