UTC
UTC, 1-based
UTC
UTC
UTC
Optionalmicrosecond: number = 0Optionalprecision: number = ...
fractional digits to display, 0..6
The reference's equality, which -key = [...] removes by: the same
instant written to the same precision. 07:32:00Z and
08:32:00+01:00 are equal; 07:32:00Z and 07:32:00.0Z are not.
this instant, truncated to the millisecond a Date holds
YYYY-MM-DDTHH:MM:SS[.fraction]Z, Elixir's DateTime.to_iso8601/1 of a UTC datetime
StaticfromThe same instant, with the millisecond as its fraction (three digits), or none when the millisecond is zero.
StaticparseParses an RFC 3339 datetime with a Z or ±HH:MM offset and
normalizes it to UTC.
YYYY-MM-DDTHH:MM:SS[.fraction](Z|±HH:MM)
An offset datetime -- CASC.md §6.6's
1979-05-27T07:32:00Zor1979-05-27T07:32:00.120+05:30: a real instant. Mirrors Elixir'sDateTimeas the reference loads one (DateTime.from_iso8601/1): normalized to UTC, at microsecond resolution, remembering how many fractional digits were written (precision), so.120stays.120and.0stays.0. Digits past the sixth are truncated, as the reference truncates them.It once loaded as a native
Date, which holds milliseconds only:.123456lost its microseconds, and.120,.12and.1200all read back as the same.120.toDate()still gives thatDateto a caller who wants one.The fields are the UTC calendar fields. Applying an offset can carry the instant out of the four-digit years a literal can be written with (
0000-01-01T00:00:00+00:01is in year -1), soyearis any integer here, unlikeLocalDateTime's.