interval in days - Mailing list pgsql-novice

From Tomka Gergely
Subject interval in days
Date
Msg-id Pine.LNX.4.33.0308251012410.13781-100000@zeus.gau.hu
Whole thread Raw
Responses Re: interval in days
List pgsql-novice
date_part('epoch', date_trunc('day', TIMESTAMP 'now') -
date_trunc('day', hiba.datum)) / (60*60*24)

I hope there are a simple solution for this - i want to know the age of
hiba.datum, in days. If one year old, then i need 365.

--
Tomka Gergely
"S most - vajon barbárok nélkül mi lesz velünk?
Ők mégiscsak megoldás voltak valahogy..."


pgsql-novice by date:

Previous
From: dalgoda@ix.netcom.com (Mike Castle)
Date:
Subject: Re: Clusters and pgsql
Next
From: Tom Lane
Date:
Subject: Re: interval in days