Re: time to integer

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: time to integer
Дата
Msg-id 6966.983906856@sss.pgh.pa.us
обсуждение исходный текст
Ответ на time to integer  (Soma Interesting <dfunct@telus.net>)
Ответы Re: time to integer
Список pgsql-general
Soma Interesting <dfunct@telus.net> 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', timestamp) produces a Unix-style seconds count.

            regards, tom lane

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

Предыдущее
От: "Gregory Wood"
Дата:
Сообщение: Re: SQL article
Следующее
От: "Francis Solomon"
Дата:
Сообщение: RE: [SQL] Date question