datediff is there something like it?

From: "Joel Fradkin" <jfradkin(at)wazagua(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: datediff is there something like it?
Date: 2005-01-25 15:11:40
Message-ID: 000001c502f0$2d10a7c0$797ba8c0@jfradkin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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?

Joel Fradkin

Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305

jfradkin(at)wazagua(dot)com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2005-01-25 16:33:30 Re: datediff is there something like it?
Previous Message mrblonde 2005-01-24 23:32:20 Re: update from multiple rows