Re: postgres and unix time format

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: postgres and unix time format
Дата
Msg-id 007001c1052e$486fb740$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на postgres and unix time format  (Ryan Mahoney <ryan@paymentalliance.net>)
Список pgsql-general
From: "Ryan Mahoney" <ryan@paymentalliance.net>

> Is it possible to select dates from postgres in Unix time format?

Something like:

select extract('epoch' from now());

or

select date_part('epoch',now());

should do it.


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

Предыдущее
От: Oliver Vecernik
Дата:
Сообщение: Re: bit operations
Следующее
От: "Richard Huxton"
Дата:
Сообщение: Re: Remote queries