Re: time to integer

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: time to integer
Дата
Msg-id Pine.LNX.4.30.0103062038380.778-100000@peter.localdomain
обсуждение исходный текст
Ответ на time to integer  (Soma Interesting <dfunct@telus.net>)
Список pgsql-general
Soma Interesting writes:

> I'm trying to write a function with pl/pgsql that takes member_id (int4)
> and adds this to now() converted to seconds. Is there an existing function
> to do the conversion of a timestamp to seconds?

date_part('epoch', value) /* seconds since 1970 */

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Date question
Следующее
От: "Paulo Parola"
Дата:
Сообщение: RPMs for PHP accessing PostgreSQL via ODBC over RedHat