OxL Справочник OxL
РусскийEnglish

op Ldt.-

Calendar arithmetic: the date moves back by the period, the time of day stays.

Example:

oxl✓ проверяется в CI
fn main() io {
  print("{(2026-03-31T10:00 - 1.month()).toIso()}")
}
Вывод
2026-02-28T10:00:00
pub(api) static op -(a: Ldt, p: Period) -> Ldt

С версии. 1.0.0-beta

Параметры

ИмяТип
aLdt
pPeriod

Возвращает

Ldt

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/time/time.oxl:1712

См. также