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

enum TimeFormat

Predefined text formats of parse (§17.5); every parse also accepts a pattern string instead.

Example:

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

fn main() io {
  print("{Date.parse("2026-11-03", .Iso8601)!.toIso()}")
}
Вывод
2026-11-03
pub(api) enum TimeFormat

С версии. 1.0.0-beta

Варианты

Iso8601

ISO 8601 / RFC 3339.

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

См. также