OxL Reference

method Ldt.toIso

The date-time in ISO 8601 form (2026-11-03T18:30:00).

Example:

oxl✓ checked in CI
use std.time { LocalDateTime }

fn main() io {
  let t: LocalDateTime = 2026-11-03T18:30
  print(t.toIso())
}
Output
2026-11-03T18:30:00
pub(api) fn toIso() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:1766

See also