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()}")
}Вывод
2026-02-28
pub(api) static op -(d: Date, p: Period) -> DateС версии. 1.0.0-beta
Параметры
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/time/time.oxl:1523