Skip to main content

Temporal


id: py-Temporal

Temporal

Base interface for date/time objects that support standard string formatting.

Implemented by DateTime and LocalDate.


Methods

MethodReturnsDescription
toISOString()strISO 8601 representation
toString()strHuman-readable string representation
dt = DateTime.now()

dt.toISOString() # "2024-09-03T12:34:56.789Z"
dt.toString() # "2024-09-03T12:34:56.789Z"