OxL Reference

method Ldt.of

The local date-time of a date and a time of day.

Example:

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

fn main() io {
  print("{LocalDateTime.of(2026-11-03, TimeOfDay{ hour: 9, minute: 15 }).toIso()}")
}
Output
2026-11-03T09:15:00
pub(api) static fn of(date: Date, time: TimeOfDay) -> Ldt

Since. 1.0.0-beta

Parameters

NameType
dateDate
timeTimeOfDay

Returns

Ldt

Effects

none declared (pure unless the body says otherwise)

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

See also