method Date.atTime
The local date-time at the time of day t on this date.
Example:
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) -> LdtSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
t | TimeOfDay |
Returns
Ldt
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1498