Re: biginteger to timestamp

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: biginteger to timestamp
Дата
Msg-id 200607201132.31207.peter_e@gmx.net
обсуждение исходный текст
Ответ на biginteger to timestamp  (LiveShell <liveshell@gmail.com>)
Список pgsql-admin
Am Donnerstag, 20. Juli 2006 11:26 schrieb LiveShell:
>          I want to convert biginteger and integer data type to timestamp
> data type.

That depends mostly on what kind of meaning you intend to attach to an integer
N.   If you want seconds since 1970, you could do

x * interval '1 second' + timestamp '1970-01-01'

For other meanings, adjust as necessary.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: LiveShell
Дата:
Сообщение: biginteger to timestamp
Следующее
От: "hubert depesz lubaczewski"
Дата:
Сообщение: Re: biginteger to timestamp