Time, TIMETZ, Timestamp and TimestampTZ in PostgreSQL
What's this blog post about?
This blog post delves into the intricacies of time data types in PostgreSQL, including TIME, TIMETZ, TIMESTAMP, and TIMESTAMPTZ. It covers topics such as session time zones, POSIX time offsets, parsing, casting, precision, functions and operators, AT TIME ZONE, daylight savings, interval math with daylight savings, the Y2K38 problem, and more. The author recommends using TIMESTAMPTZ with a session time zone set to UTC for handling time data types in PostgreSQL.
Company
Cockroach Labs
Date published
Aug. 14, 2021
Author(s)
Oliver Tan
Word count
4601
Language
English
Hacker News points
7