From: | "Glen and Rosanne Eustace" <agree(at)godzone(dot)net(dot)nz> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Problem with Dates |
Date: | 2001-01-25 23:46:21 |
Message-ID: | 00d401c08729$077cc440$0101a8c0@godzone.net.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Sofrin | 2001-01-25 23:47:47 | SQL function and composite types |
Previous Message | Oliver Elphick | 2001-01-25 22:54:44 | Re: Don't want blank data |