template1=# select '31/12/2000'::date;
?column?
------------
2000-12-31
(1 row)
template1=# select '31/12/2000'::date + '365 days'::timespan;
?column?
------------------------
2002-01-01 00:00:00+13 <<<<<<<<<<< Wrong
(1 row)
template1=# select '31/12/2000'::date + '364 days'::timespan;
?column?
------------------------
2001-12-31 00:00:00+13
(1 row)
template1=# select '31/12/2000'::date + '363 days'::timespan;
?column?
------------------------
2001-12-30 00:00:00+13
(1 row)
> Not sure if gets you anywhere. But data points.
>
> There is an email archive on the postgresql.org website you could
search if
> you think it's been answered before.
I have tried looking here but it is pretty hard to know what to look
for.
Glen.
- [SQL] Problem with Dates Glen and Rosanne Eustace
- Re: [SQL] Problem with Dates Mike Castle
- [SQL] Veering OT opinions please XQL ve... clayton cottingham
- [SQL] Re: Problem with Dates Glen and Rosanne Eustace
- [SQL] Re: Problem with Dates Mike Castle
- Re: [SQL] Re: Problem with Dates Glen and Rosanne Eustace
- Re: [SQL] Re: Problem with ... Christopher Sawtell
- Re: [SQL] Re: Problem w... Tom Lane
- Re: [SQL] Re: Probl... Glen and Rosanne Eustace
- Re: [SQL] Re: Probl... Tom Lane
- Re: [SQL] Re: Probl... Glen and Rosanne Eustace
- Re: [SQL] Re: Probl... Brett W. McCoy
- Re: [SQL] Re: Probl... Glen and Rosanne Eustace
- Re: [SQL] Re: Probl... Brett W. McCoy
- Re: [SQL] Re: Probl... Christopher Sawtell
- Re: [SQL] Re: Probl... Tom Lane
