OxL Reference

method Date.atTime

The local date-time at the time of day t on this date.

Example:

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

fn main() io {
  print("{2026-11-03.atTime(TimeOfDay{ hour: 18, minute: 30 }).toIso()}")
}
Output
2026-11-03T18:30:00
pub(api) fn atTime(t: TimeOfDay) -> Ldt

Since. 1.0.0-beta

Parameters

NameType
tTimeOfDay

Returns

Ldt

Effects

none declared (pure unless the body says otherwise)

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

See also