Temporal.DateTimeA datetime from UTC epoch seconds and sub-second nanoseconds.
val to_epoch_seconds : t -> int64 * intThe (epoch seconds, nanoseconds) of a datetime.
A datetime from a wall clock and optional time zone. Named zones are resolved through the IANA time zone database embedded in Timedesc; None for unknown zones or out-of-range values.
val to_ymd_hms : t -> (int * int * int) * (int * int * int) * intThe wall clock ((y, m, d), (h, m, s), nanoseconds) in the datetime's zone. For named zones the offset at the instant is resolved from the embedded IANA database.
val offset_seconds : t -> int optionThe UTC offset in seconds at the datetime's instant: the fixed offset for Offset zones, resolved from the embedded IANA database for Zone_name zones (None if the zone is unknown).
val add : Duration.t -> t -> t optionAdd a duration; None for named zones.
val sub : Duration.t -> t -> t optionSubtract a duration; None for named zones.
val diff : t -> t -> Duration.t optionDifference a - b as a duration; None if either has a named zone.
val to_iso8601 : t -> stringFormat as "YYYY-MM-DDTHH:MM:SS.fff...+HH:MM".
val of_iso8601 : string -> t optionParse an ISO 8601 datetime; None if invalid or the zone is named.
val to_ptime : t -> Ptime.t optionConvert to a Ptime.t; None for named zones.
val to_string : t -> stringAlias for to_iso8601.