-
+
Functions and Operators
CST7CDT.
+ Note that when the age> function operates on multi-month
+ intervals,
PostgreSQL> adds days to the earlier date
+ until full months can be added. This yields a different result than
+ adding full months first if the interval crosses from one month to the
+ next. For example, age('2004-06-01', '2004-04-30')> yeilds
+
1 mon 1 day> using the PostgreSQL> method,
+ while adding the month first would yield 1 mon 2 days>
+ because May has 31 days, while April has only 30.
+
+
EXTRACT, date_part