Re: Datetime as a time_t?

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: Datetime as a time_t?
Дата
Msg-id 3.0.6.32.20000406175131.014ded10@execulink.com
обсуждение исходный текст
Ответ на Datetime as a time_t?  (Ryan Bradetich <ryan_bradetich@hp.com>)
Список pgsql-sql
At 10:27 AM 4/06/00 -0600, Ryan Bradetich wrote:
>Does anyone know how to extract a datetime field as a time_t?
>My understanding is that PostgreSQL stores dates internally
>as a time_t, but I have not figured out how to extract them in
>that format.
abstime(datetime_field)::int8

works for both datetime and timestamp fields.

Frank


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Datetime as a time_t?
Следующее
От: "Leonid P. Klemjatsionok"
Дата:
Сообщение: Re: update only if single row