Re: epoch to date?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: epoch to date?
Дата
Msg-id 20030508195441.GB4152@wolff.to
обсуждение исходный текст
Ответ на epoch to date?  (Alex Rice <alrice@ARCplanning.com>)
Список pgsql-sql
On Thu, May 08, 2003 at 13:44:22 -0600, Alex Rice <alrice@ARCplanning.com> wrote:
> I have a column with seconds since the unix epoch. How to convert it to 
> date? Sorry I couldn't find it in the docs.

One way is:
select 'epoch'::timestamp + 1234 * '1 second'::interval;

Another is:
select 1234::abstime;



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

Предыдущее
От: Alex Rice
Дата:
Сообщение: Re: does this require a stored procedure?
Следующее
От: "SZŰCS Gábor"
Дата:
Сообщение: Re: Overwhelming DEBUG messages