OxL Reference

method Date.atStartOfDay

Midnight of this date.

Example:

oxl✓ checked in CI
fn main() io {
  print("{2026-11-03.atStartOfDay().toIso()}")
}
Output
2026-11-03T00:00:00
pub(api) fn atStartOfDay() -> Ldt

Since. 1.0.0-beta

Returns

Ldt

Effects

none declared (pure unless the body says otherwise)

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

See also