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

method Date.daysUntil

Whole days from this date to other (negative when other is earlier).

Example:

oxl✓ проверяется в CI
use std.time { Date }

fn main() io {
  print("{Date.of(2026, 1, 1)!.daysUntil(Date.of(2026, 3, 1)!)}")
}
Вывод
59
pub(api) fn daysUntil(other: Date) -> i64

С версии. 1.0.0-beta

Параметры

ИмяТип
otherDate

Возвращает

i64

Эффекты

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

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

См. также