[GENERAL] How do I convert a timestamp with time zone to local time?

2008-07-29 Thread Rob Richardson
Greetings! What is the best way to convert a time expressed as a timestamp with time zone into a timestamp in the local time zone without knowing what the local time zone is? Thank you. RobR

Re: [GENERAL] How do I convert a timestamp with time zone to local time?

2008-07-29 Thread Valter Douglas LisbĂ´a Jr.
On Tuesday 29 July 2008 15:07:46 Rob Richardson wrote: Greetings! What is the best way to convert a time expressed as a timestamp with time zone into a timestamp in the local time zone without knowing what the local time zone is? Thank you. RobR SELECT extract (epoch from your_time_field)

Re: [GENERAL] How do I convert a timestamp with time zone to local time?

2008-07-29 Thread Rob Richardson
Thank you very much, sir. After posting I realized that my question did not cover my problem. I also need to calculate if a given time is within daylight savings time or not. The actual situation is this: I have a table that contains the time at which an event occurred and an estimate of