Time.PlainDateTime

lib/Time/PlainDateTime.gob

A date and a wall-clock time with no time zone: "the 15th of next month at 09:00", wherever that turns out to be.

It moves only by a Period. There is no elapsed-time arithmetic: without a zone it is not a point on the timeline, so "three hours later" has no single answer -- across a change to daylight saving time the wall clock moves by two hours or by four.

type PlainDateTime : Ord
fun new : fun(Date, TimeOfDay) -> PlainDateTime
fun date : fun(PlainDateTime) -> Date
fun timeOfDay : fun(PlainDateTime) -> TimeOfDay
fun shift : fun(PlainDateTime, Period) -> PlainDateTime

Shifts the date, keeping the time.

fun parse : fun(String) -> Option PlainDateTime

A date, T, and a time in any form TimeOfDay.parse reads. An offset or a zone is not accepted: text that names one is not a plain date and time.

fun read : fun(Reader) -> Option PlainDateTime
instance Show PlainDateTime

ISO 8601: 2026-10-18T09:30:00.