Re: inserting time_t into timestamp field(C language)

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: inserting time_t into timestamp field(C language)
Дата
Msg-id 20040317042637.GA26525@wolff.to
обсуждение исходный текст
Ответ на inserting time_t into timestamp field(C language)  (Cal McPherson <calm@adtec.com.au>)
Список pgsql-interfaces
On Wed, Mar 17, 2004 at 11:29:10 +1100, Cal McPherson <calm@adtec.com.au> wrote:
> What is the most efficient way to convert a time_t struct so that I can
> insert it into a timestamp field.

Probably by converting to abstime and then to timestamp.
For example:
area=> select 1079497559::abstime::timestamp;     timestamp
---------------------2004-03-16 22:25:59
(1 row)


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

Предыдущее
От: Jonathan Gardner
Дата:
Сообщение: Extending PlPythonU
Следующее
От: "Vickriz Buenaventuura"
Дата:
Сообщение: libpgtcl.so?