timestamps, epoch and time zones

Поиск
Список
Период
Сортировка
От Alberto Colombo
Тема timestamps, epoch and time zones
Дата
Msg-id 01414BFB2D0D384DA3C5EE7C16E65759A59C93@ipserv001.headquarters.ipsotek.com
обсуждение исходный текст
Ответы Re: timestamps, epoch and time zones  (Sam Mason <sam@samason.me.uk>)
Список pgsql-general

Hello,

 

Maybe it’s a question for pgsql-novice, but I have a problem converting to and from unix times. In particular, it seems that a round trip unix->PG->unix does not return the original timestamp:

 

select  extract(epoch from timestamp 'epoch');

 date_part

-----------

     -3600

 

Shouldn’t that be zero? My timezone is Europe/London (but does it matter?).

 

Thanks

Alberto

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

Предыдущее
От: Alan Millington
Дата:
Сообщение: Re: Error "invalid byte sequence for encoding UTF8" on insert into BYTEA column
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Optimization on JOIN