Re: Function to convert from (integer) UNIXTIME to DATETIME

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Function to convert from (integer) UNIXTIME to DATETIME
Дата
Msg-id 395803C9.4F024116@alumni.caltech.edu
обсуждение исходный текст
Ответ на Function to convert from (integer) UNIXTIME to DATETIME  ("Morten W. Petersen" <morten@src.no>)
Список pgsql-general
> You can cast an integer representing Unix timestamp directly to
> abstime...

Or directly to timestamp (which may pass through abstime on the way):

lockhart=# select timestamp(962057134);
         timestamp
---------------------------
 2000-06-26 22:05:34.00+00
(1 row)

Probably works for 6.5.x too.

                    - Thomas

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

Предыдущее
От: Richard Harvey Chapman
Дата:
Сообщение: Inserting all defaults
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Conversion from MS Access to Postgresql