Creates a fake timestamp from a Duration using total!"hnsecs" method. For positive and zero timestamps the format is wwww-dd-88Thh:mm:ss.nnnnnnn and for negative timestamps wwww-dd-99Thh:mm:ss.nnnnnnn.
Creates a Timestamp from a string with the format yyyy-mm-ddThh:mm:ss[.mmm]±hh:mm or its leading part allowed by the standard.
Creates a Timestamp from a string with the format `YYYYMMDDThhmmss±hhmm or its leading part allowed by the standard.
Creates a Timestamp from a YAML string format or its leading part allowed by the standard.
Converts this Timestamp to a string with the format yyyy-mm-ddThh:mm:ss[.mmm]±hh:mm.
Converts this Timestamp to a string with the format YYYYMMDDThhmmss±hhmm.
Converts this Timestamp to a string with the format yyyy-mm-ddThh:mm:ss[.mmm]±hh:mm.
Helpfer for time zone offsets
Timezone offset in minutes
Decomposes Timestamp to an algebraic type. Supported types up to T.stringof equivalence:
Casts timestamp to a date-time type.
Attaches local offset, doesn't adjust other fields. Local-time offsets may be represented as either hour*60+minute offsets from UTC, or as the zero to denote a local time of UTC. They are required on timestamps with time and are not allowed on date values.
Creates a Timestamp from a string.
Day
Fraction
Fraction
Hour
Minute
Month
Second
Year
Timestamp
Note: The component values in the binary encoding are always in UTC or local time with unknown offset, while components in the text encoding are in a some timezone with known offset. This means that transcoding requires a conversion between UTC and a timezone.
Timestamp precision is up to picosecond (second/10^12).