# of 5 minute intervals in period of time ...

From: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: # of 5 minute intervals in period of time ...
Date: 2005-12-13 22:34:36
Message-ID: 20051213183044.X1070@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Is there a simpler way of doing this then:

select (date_part('epoch', now()) -
date_part('epoch', now() - '30 days'::interval)) / ( 5 * 60 );

----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Daniel Hertz 2005-12-13 23:00:15 Multi-row update w. plpgsql function
Previous Message Christian Kratzer 2005-12-13 21:40:17 Re: exporting Excel tables into PostgreSQL database with Python