Re: date_trunc for 5 minutes intervals - Mailing list pgsql-sql

From Mathieu Arnold
Subject Re: date_trunc for 5 minutes intervals
Date
Msg-id 614747984.1066604403@sauron.in.mat.cc
Whole thread Raw
In response to date_trunc for 5 minutes intervals  (email lists <lists@darrenmackay.com>)
List pgsql-sql

+-Le 19/10/2003 23:38 +1000, email lists écrivait :
| Hi All,
|
| I am wanting to perform the equivalent of date_trunc to 5/10/15 minute
| intervals. As this does mnot seem to be natively supported by
| date_trunc, can anyone point me in the right direction to possible write
| the SQL ro achieve the desired outcome?

maybe (date_part(epoch, field)::integer / 300 * 300)::timetamp for 5
minutes interval...

--
Mathieu Arnold


pgsql-sql by date:

Previous
From: "Julian North"
Date:
Subject: naming conventions constraint
Next
From: "scott.marlowe"
Date:
Subject: Re: Regular expression problem