timestamp output as seconds since epoch?

Поиск
Список
Период
Сортировка
От A.M.
Тема timestamp output as seconds since epoch?
Дата
Msg-id DB35FD78-49F0-11D7-A1A6-0030657192DA@cmu.edu
обсуждение исходный текст
Ответы Re: timestamp output as seconds since epoch?  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-sql
I need to grab the pgsql timestamp as an integer (seconds since epoch) 
in order to compare the dates programmatically later on. What I'd like 
is:
SELECT CAST('12/12/2004 4:50:45.3' AS TIMESTAMP)::INT8;
The docs talk alot about date input but only discuss the 4 SET 
regionalized date output methods. Thanks!><><><><><><><><><
AgentM
agentm@cmu.edu




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

Предыдущее
От: "Grignon Etienne"
Дата:
Сообщение: pgsql problem
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: timestamp output as seconds since epoch?