ModulesΒ§
- cast_
timestamp_ πto_ date - cast_
timestamp_ πto_ string - cast_
timestamp_ πto_ time - cast_
timestamp_ πtz_ to_ date - cast_
timestamp_ πtz_ to_ string - cast_
timestamp_ πtz_ to_ time
StructsΒ§
- Adjust
Timestamp Precision - Adjust
Timestamp TzPrecision - Cast
Timestamp ToDate - Cast
Timestamp ToString - Cast
Timestamp ToTime - Cast
Timestamp ToTimestamp Tz - Cast
Timestamp TzTo Date - Cast
Timestamp TzTo String - Cast
Timestamp TzTo Time - Cast
Timestamp TzTo Timestamp - Date
Part Interval - Date
Part Timestamp - Date
Part Timestamp Tz - Date
Trunc Timestamp - Date
Trunc Timestamp Tz - Extract
Interval - Extract
Timestamp - Extract
Timestamp Tz - Timezone
Timestamp - Timezone
Timestamp Tz - ToChar
Timestamp - ToChar
Timestamp Tz
FunctionsΒ§
- cast_
timestamp_ to_ date - cast_
timestamp_ to_ string - cast_
timestamp_ to_ time - cast_
timestamp_ tz_ to_ date - cast_
timestamp_ tz_ to_ string - cast_
timestamp_ tz_ to_ time - checked_
add_ πwith_ leapsecond - Checked addition that is missing from chrono. Adapt its methods here but add a check.
- date_
part_ interval_ inner - date_
part_ timestamp_ inner - date_
trunc_ inner - most_
significant_ πunit - Will extracting this unit from the timestamp include the βmost significant bitsβ of the timestamp?
- timezone_
timestamp - Converts the timestamp
dt, which is assumed to be in the time of the timezonetzto a timestamptz in UTC. This operation is fallible because certain timestamps at timezones that observe DST are simply impossible or ambiguous. In case of ambiguity (when a hour repeats) we will prefer the latest variant, and when an hour is impossible, we will attempt to fix it by advancing it. For example,ESTand2020-11-11T12:39:14would return2020-11-11T17:39:14Z. A DST observing timezone likeAmerica/New_Yorkwould cause the following DST anomalies:2020-11-01T00:59:59->2020-11-01T04:59:59Zand2020-11-01T01:00:00->2020-11-01T06:00:00Z2020-03-08T02:59:59->2020-03-08T07:59:59Zand2020-03-08T03:00:00->2020-03-08T07:00:00Z - timezone_
timestamptz - Converts the UTC timestamptz
utcto the local timestamp of the timezonetz. For example,ESTand2020-11-11T17:39:14Zwould return2020-11-11T12:39:14.