Re: epoch to timestamp

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: epoch to timestamp
Дата
Msg-id 200305120900.11409.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: epoch to timestamp  (Larry Rosenman <ler@lerctr.org>)
Ответы Re: epoch to timestamp  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-sql
Larry,

> I actually have just seconds (from my LD carrier), and want to store it in
> hours/minutes/seconds.

If you store it as an interval, you will end up with:

staffos=# select '12742329 seconds'::INTERVAL;    interval
-------------------147 days 11:32:09

In fact, you can't avoid interval conversion to days, hours, minutes.

--
Josh Berkus
Aglio Database Solutions
San Francisco



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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: epoch to timestamp
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: epoch to timestamp