Search Postgresql Archives

Re: Get interval in months

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 08, 2008 at 07:44:45AM -0500, David Spadea wrote:
> Gerhard,
> 
> Check out:
> 
> http://www.postgresql.org/docs/8.3/interactive/functions-datetime.html
> 
> In particular, look at 'age()' or 'justify_days()', but  I think age() is the
> one you want.
> 
> 
> SELECT age('2008-02-01'::timestamp, '2008-01-01'::timestamp) AS "1 month"
> 
> Produces:  "1 mon"

This was the function I searched. Thank you.

Gerhard

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux