Time Intervals

Learn about time interval styles and implement a calendar using PostgreSQL.

The interval data type

PostgreSQL implements an interval data type along with the time, date, and timestamptz data types. An interval describes a duration, such as a month, two weeks, or even a millisecond:

Get hands-on with 1200+ tech skills courses.