OxL Reference

type Ldt

impl Ldt

Since. 1.0.0-beta

Methods

of(date: Date, time: TimeOfDay) -> Ldt
The local date-time of a date and a time of day.
date() -> Date
The date part.
timeOfDay() -> TimeOfDay
The time-of-day part.
+(a: Ldt, d: Dur) -> Ldt
Exact length added to the wall clock (no zone, so no daylight saving).
-(a: Ldt, d: Dur) -> Ldt
Exact arithmetic
-(a: Ldt, b: Ldt) -> Dur
The exact duration between two local date-times.
+(a: Ldt, p: Period) -> Ldt
Calendar arithmetic
-(a: Ldt, p: Period) -> Ldt
Calendar arithmetic
in()
This wall-clock time in tz (§17.2).
fmt(pattern: str) -> str
Formats with a pattern (dd.MM.yyyy HH:mm); an empty pattern is ISO 8601.
toIso() -> str
The date-time in ISO 8601 form (2026-11-03T18:30:00).
parse(text: str, format: TimeFormat | str) -> Ldt | ParseError
Parses a local date-time in ISO 8601 form or with a pattern.

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

See also