From 4828445d3c6687bb43061ac9234b5a3f5d96522b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 1 Dec 2004 19:32:12 +0000 Subject: [PATCH] Clarify documentation of age() functions. --- doc/src/sgml/func.sgml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 111000086d..52bd7293ca 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -4877,19 +4877,20 @@ substring('foobar' from 'o(.)b') o - age(timestamp) + age(timestamp, timestamp) interval - Subtract from today - age(timestamp '1957-06-13') - 43 years 8 mons 3 days + Subtract arguments, producing a symbolic result that + uses years and months + age(timestamp '2001-04-10', timestamp '1957-06-13') + 43 years 9 mons 27 days - age(timestamp, timestamp) + age(timestamp) interval - Subtract arguments - age('2001-04-10', timestamp '1957-06-13') - 43 years 9 mons 27 days + Subtract from current_date + age(timestamp '1957-06-13') + 43 years 8 mons 3 days