Re: Convert time to millisec?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Convert time to millisec?
Дата
Msg-id 20060828143249.GA4775@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Convert time to millisec?  (Bjørn T Johansen <btj@havleik.no>)
Список pgsql-general
On Mon, Aug 28, 2006 at 04:18:12PM +0200, Bjørn T Johansen wrote:
> On Mon, 28 Aug 2006 07:20:02 -0600 Michael Fuhr <mike@fuhr.org> wrote:
> > select extract(epoch from sum(Til - Fra)) * 1000.0 ...
>
> Do you know if this is supported on older versions of PostgreSQL
> as well? (eg. 7.4.x)

Yes, it is; I think it's worked since ancient times.  See "Date/Time
Functions and Operators" in the "Functions and Operators" chapter
of the documentation for whatever versions you need.  Here's a link
for 7.4:

http://www.postgresql.org/docs/7.4/interactive/functions-datetime.html

--
Michael Fuhr

В списке pgsql-general по дате отправления:

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Re: Convert time to millisec?
Следующее
От: "chris preston"
Дата:
Сообщение: Re: pg_restore problems