pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-docs@postgreSQL.org
Subject: undocumented date addition/subtraction operators
Date: Thu, 28 Aug 2003 11:36:34 -0400
Message-ID: <21197.1062084994@sss.pgh.pa.us> (raw)

I just realized why the attached and variants are FAQs --- the operators
for date minus date, date plus integer, etc are documented nowhere.

Will fix.

			regards, tom lane

------- Forwarded Message

Date:    Thu, 28 Aug 2003 23:09:44 +0900
From:    Alex <alex@meerkatsoft.com>
To:      pgsql-general@postgresql.org
Subject: [GENERAL] Date Time Function / Age

Hi,
is there an easy way to get the Difference between 2 dates in Days... as 
an integer?

age('date1','date2') results in  x years y days or something similar. 
but I would like to
have the result in number of days as an integer.

Thanks for your help

Alex

------- End of Forwarded Message




Message-ID: <21197.1062084994@sss.pgh.pa.us>
Permalink:  ../21197.1062084994@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21197.1062084994@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: undocumented date addition/subtraction operators
  In-Reply-To: <21197.1062084994@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox