Re: timezone() with timeofday() converts the wrong

Поиск
Список
Период
Сортировка
Искать
От
Scott Marlowe
Тема
Re: timezone() with timeofday() converts the wrong
Дата
Msg-id
1114117937.13303.45.camel@state.g2switchworks.com
Ответ на
Список
Дерево обсуждения
timezone() with timeofday() converts the wrong direction? "Steve - DND" <postgres@digitalnothing.com>
Re: timezone() with timeofday() converts the wrong Scott Marlowe <smarlowe@g2switchworks.com>
Re: timezone() with timeofday() converts the wrongdirection? "Steve - DND" <postgres@digitalnothing.com>
Re: timezone() with timeofday() converts the wrongdirection? Bruce Momjian <pgman@candle.pha.pa.us>
Re: timezone() with timeofday() converts the wrong direction? Michael Fuhr <mike@fuhr.org>
Re: timezone() with timeofday() converts the wrong direction? "Steve - DND" <postgres@digitalnothing.com>
Re: timezone() with timeofday() converts the wrong direction? Michael Fuhr <mike@fuhr.org>
Re: timezone() with timeofday() converts the wrong direction? "Steve - DND" <postgres@digitalnothing.com>
Re: timezone() with timeofday() converts the wrong direction? Michael Fuhr <mike@fuhr.org>
Re: timezone() with timeofday() converts the wrong direction? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: timezone() with timeofday() converts the wrong direction? Michael Fuhr <mike@fuhr.org>
Re: timezone() with timeofday() converts the wrong direction? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: timezone() with timeofday() converts the wrong direction? Michael Fuhr <mike@fuhr.org>
Re: timezone() with timeofday() converts the wrong direction? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: timezone() with timeofday() converts the wrong direction? Tom Lane <tgl@sss.pgh.pa.us>
Re: timezone() with timeofday() converts the wrong direction? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: timezone() with timeofday() converts the wrong direction? Michael Fuhr <mike@fuhr.org>
Re: timezone() with timeofday() converts the wrong direction? Tom Lane <tgl@sss.pgh.pa.us>
Re: timezone() with timeofday() converts the wrong direction? Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: timezone() with timeofday() converts the wrong direction? Karsten Hilbert <Karsten.Hilbert@gmx.net>
On Thu, 2005-04-21 at 15:35, Steve - DND wrote:
> These attempts were run at 4/21/2005 13:15:00 -07.
> UTC: 4/21/2005 20:15:00
> 
> SELECT timeofday()::timestamp
> 04/21/2005 13:15:00
> 
> SELECT timezone('UTC', now())
> 04/21/2005 20:15:00 PM
> 
> SELECT timezone('UTC', timeofday()::timestamp)::timestamp without time zone
> 04/21/2005 06:15:00 <- What the heck is this?!
> 
> 
> Why does the conversion to UTC using timeofday() go wrong? It seems like the
> conversion went 7 hours in the wrong direction. Did I forget a parameter or
> switch somewhere?

What version of PostgreSQL are you running? I seem to remember a few
versions ago the offset having the wrong sign.
В списке pgsql-general по дате отправления
От: Scott Marlowe
Дата:
От: Steve - DND
Дата:
FAQ