converting timstamptz to local time zone

Поиск
Список
Период
Сортировка
От Peter Nixonn
Тема converting timstamptz to local time zone
Дата
Msg-id e0gf74$fju$1@sea.gmane.org
обсуждение исходный текст
Ответы Re: converting timstamptz to local time zone  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
How can I "select ('2006-01-01 9:00:00+02' at time zone 'GMT')::timestamp;"
where instead of GMT it has the local time zone of the machine I am running
it on (which varies between my machines)?
I dont want to hard code the timezone of the machine into the query.. I want
to pick it up from the environment, but cant figure out how :-(

--

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

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

Предыдущее
От: "Sergey Karin"
Дата:
Сообщение: How to detect primary key of a table
Следующее
От: "Sergey Karin"
Дата:
Сообщение: Re: How to detect primary key of a table