Re: Is this a bug? : select '26/10/2003'::date + interval

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Is this a bug? : select '26/10/2003'::date + interval
Дата
Msg-id 20030522091054.V37537-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Is this a bug? : select '26/10/2003'::date + interval '1 day';  (Conxita Marín <comarin@telefonica.net>)
Ответы Re: Is this a bug? : select '26/10/2003'::date + interval
Список pgsql-general
On Thu, 22 May 2003, [iso-8859-1] Conxita Mar�n wrote:

> Hi.
>
> Is this a bug?
>
> s001=> select '25/10/2003'::date + interval '1 day';
>          ?column?
> --------------------------
>  26/10/2003 00:00:00 CEST
> (1 row)
>
> s001=> select '26/10/2003'::date + interval '1 day';
>         ?column?
> -------------------------
>  26/10/2003 23:00:00 CET  (????)
> (1 row)

Is that your daylight savings time changeover point (appears to be from
the output, but it's worth checking).  IIRC '1 day' is taken as equivalent
to 24 hours which because of the time zone switch causes the above (it'd
presumably be 27/10/2003 00:00:00 CEST but that's not your timezone
anymore).


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

Предыдущее
От: wsheldah@lexmark.com
Дата:
Сообщение: Re: PRIMARY KEYS
Следующее
От: Erik Price
Дата:
Сообщение: tablemeta-data