Re: date_trunc for 5 minutes intervals

Поиск
Список
Период
Сортировка
От Mathieu Arnold
Тема Re: date_trunc for 5 minutes intervals
Дата
Msg-id 614747984.1066604403@sauron.in.mat.cc
обсуждение исходный текст
Ответ на date_trunc for 5 minutes intervals  (email lists <lists@darrenmackay.com>)
Список 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 по дате отправления:

Предыдущее
От: "Julian North"
Дата:
Сообщение: naming conventions constraint
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Regular expression problem