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

op ZonedTime.-

Calendar arithmetic: the wall clock moves back by the period; the offset may change with daylight saving time.

Example:

oxl✓ проверяется в CI
fn main() io {
  print("{(2026-03-30T12:00.in(tz"Europe/Berlin")! - 1.day()).toIso()}")
}
Вывод
2026-03-29T12:00:00+02:00[Europe/Berlin]
pub(api) static op -(a: ZonedTime, p: Period) -> ZonedTime

С версии. 1.0.0-beta

Параметры

ИмяТип
aZonedTime
pPeriod

Возвращает

ZonedTime

Эффекты

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

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

См. также