Casting and Timestamp

Поиск
Список
Период
Сортировка
От Mark Gibson
Тема Casting and Timestamp
Дата
Msg-id 449F0D31.1030403@gibsonsoftware.com
обсуждение исходный текст
Ответы Re: Casting and Timestamp
Re: Casting and Timestamp
Список pgsql-general
I have unexpected results when trying to cast a string to a timestamp:

test=# select  TIMESTAMP WITH TIME ZONE '2006/06/25 06:00:00 GMT-5'
test-# ;
       timestamptz
------------------------
  2006-06-24 20:00:00-05


Seems that what I get is about 10 hours earlier than I expect...

Any ideas why this is happening?  Did I assume too much in the cast?

Thanks,
Mark

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

Предыдущее
От: Mark Gibson
Дата:
Сообщение: Re: casting... adding integer to timestamp
Следующее
От: Mark Gibson
Дата:
Сообщение: Re: Casting and Timestamp