Re: Number of days

From: "omid omoomi" <oomoomi(at)hotmail(dot)com>
To: tanethq(at)earthlink(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: Number of days
Date: 2001-07-06 19:07:50
Message-ID: F159HusMjQHtMFaukyC00003040@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

select date_part('day','@ 4 days 3 hours 2 mins');

date_part
---------
4

HTH
Omid

>From: "Mihai Gheorghiu" <tanethq(at)earthlink(dot)net>
>To: <pgsql-general(at)postgresql(dot)org>
>Subject: [GENERAL] Number of days
>Date: Fri, 6 Jul 2001 14:47:39 -0400
>
>Is there a function that returns the number of days between two dates?
>I found only age, which calculates the difference between two timestamps,
>but the example shows the result as a timestamp.
>Thanks,
>Mihai Gheorghiu
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://www.postgresql.org/search.mpl

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Browse pgsql-general by date

  From Date Subject
Next Message Somazx Interesting 2001-07-06 19:18:10 orphaned RI constraints
Previous Message Philip Molter 2001-07-06 19:02:14 Re: HUPing a database