Re: select current UTC time ?

Поиск
Список
Период
Сортировка
От Rainer Bauer
Тема Re: select current UTC time ?
Дата
Msg-id gceg449s5gsm0nl5sv3hrt4q7325rp9tcm@4ax.com
обсуждение исходный текст
Ответ на select current UTC time ?  (kevin kempter <kevin@kevinkempterllc.com>)
Список pgsql-admin
kevin kempter wrote:

>How could I select the current UTC time ?  now() cast as a timestamp
>at UTC is wrong because it takes now() and says: if it were now() time
>UTC what would it be here (timezone) and returns that. I want to
>return 'what time is it now in UTC ?'

SELECT EXTRACT('epoch' FROM CURRENT_TIMESTAMP AT TIME ZONE 'UTC')::bigint::int

Rainer

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