Re: cast time interval to seconds
От
Michael Glaesemann
Тема
Re: cast time interval to seconds
Дата
Msg-id
DB657E60-1C61-417E-B042-CD812FB8216C@seespotcode.net
Ответ на
cast time interval to seconds (rihad)
Список
Дерево обсуждения
cast time interval to seconds rihad <rihad@mail.ru>
Re: cast time interval to seconds Martijn van Oosterhout <kleptog@svana.org>
Re: cast time interval to seconds "Pavel Stehule" <pavel.stehule@gmail.com>
Re: cast time interval to seconds Michael Glaesemann <grzm@seespotcode.net>
On Sep 10, 2007, at 10:44 , rihad wrote: > SELECT > (CAST(stop_time AS SECONDS) + 86400 - CAST(start_time AS SECONDS)) > % 86400; "seconds" isn't a datatype. Try extract(epoch from (stop_time - start_time)) The manual is quite extensive: http://www.postgresql.org/docs/8.2/interactive/functions- datetime.html#FUNCTIONS-DATETIME-EXTRACT Michael Glaesemann grzm seespotcode net
В списке pgsql-general по дате отправления