<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>timezone on nanmu42</title><link>https://nanmu.me/en/tags/timezone/</link><description>Recent content in timezone on nanmu42</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>i@nanmu.me (nanmu42)</managingEditor><webMaster>i@nanmu.me (nanmu42)</webMaster><copyright>Copyright &amp;copy;{year} LI Zhennan</copyright><lastBuildDate>Sat, 14 Mar 2020 00:00:00 +0800</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><sy:updateFrequency>weekly</sy:updateFrequency><atom:link href="https://nanmu.me/en/tags/timezone/index.xml" rel="self" type="application/rss+xml"/><item><title>PostgreSQL Date and Time Data Types Explained</title><link>https://nanmu.me/en/posts/2020/postgresql-date-and-time-data-types-explained/</link><pubDate>Sat, 14 Mar 2020 00:00:00 +0800</pubDate><author>i@nanmu.me (nanmu42)</author><atom:modified>Tue, 06 Aug 2024 10:39:07 +0800</atom:modified><guid>https://nanmu.me/en/posts/2020/postgresql-date-and-time-data-types-explained/</guid><description>PostgreSQL(or Postgres) is a great database. Life would be much easier if its strength is well utilized.
Postgres provides five datetime data types, including timestamp/timestamp with time zone, date, time, interval and time range(tsrange, tstzrange, daterange). This article briefs them, talks about gotchas and recommendations like why not store every datetime in UTC.
Timestamps We are living in a four-dimension space of length, width, height and time. The time is uniquely determined by year, month, day, hour, minute and second, given timezone is specified.</description><dc:creator>nanmu42</dc:creator><category>PostgreSQL</category><category>timezone</category><category>Notes and Discussions</category></item></channel></rss>