Re: int4 -> unix timestamp -> sql timestamp; abstime?

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: int4 -> unix timestamp -> sql timestamp; abstime?
Дата
Msg-id 9B684894-642E-11D9-8228-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на Re: int4 -> unix timestamp -> sql timestamp; abstime?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Jan 12, 2005, at 8:35, Tom Lane wrote:

> The recommended locution is
>
> SELECT TIMESTAMP WITH TIME ZONE 'epoch' + <x> * INTERVAL '1 second';
>
> Of course you can wrap this up in a function if you prefer (not sure
> why
> we haven't done so already).

It's in the queue for 8.1.

<http://candle.pha.pa.us/mhonarc/patches2/msg00090.html>

Michael Glaesemann
grzm myrealbox com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: int4 -> unix timestamp -> sql timestamp; abstime?
Следующее
От: Roman Neuhauser
Дата:
Сообщение: Re: int4 -> unix timestamp -> sql timestamp; abstime?