From: Bruno Wolff III <bruno@wolff.to>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: datediff is there something like it?
Date: Wed, 26 Jan 2005 14:13:19 -0600
Message-ID: <20050126201319.GA23744@wolff.to> (raw)
In-Reply-To: <000001c502f0$2d10a7c0$797ba8c0@jfradkin>
References: <000001c502f0$2d10a7c0$797ba8c0@jfradkin>
On Tue, Jan 25, 2005 at 10:11:40 -0500,
Joel Fradkin <jfradkin@wazagua.com> wrote:
> Hi all working my way through our views and all is going very well.
>
> We use datediff in MSSQL a bit and I read about the field1::date -
> field2::date to return the days numerically.
>
> Is there any way to get months and years besides guessing days / 30 for
> months etc?
The age function will give a difference in years-months in addition to
days-hours-minutes-seconds.
Depending on what you want, it may not do exactly what you want.
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-sql@postgresql.org
Cc: bruno@wolff.to, jfradkin@wazagua.com
Subject: Re: datediff is there something like it?
In-Reply-To: <20050126201319.GA23744@wolff.to>
* 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