From: Glen and Rosanne Eustace <agree@godzone.net.nz>
To: pgsql-sql@postgresql.org
Subject: Re: Problem with Dates
Date: Fri, 26 Jan 2001 12:46:21 +1300
Message-ID: <00d401c08729$077cc440$0101a8c0@godzone.net.nz> (raw)
References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz>
<20010124125552.D17481@thune.yy.com>
<003f01c08673$75d617e0$0101a8c0@godzone.net.nz>
<20010124181731.G17481@thune.yy.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: agree@godzone.net.nz
Subject: Re: Problem with Dates
In-Reply-To: <00d401c08729$077cc440$0101a8c0@godzone.net.nz>
References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz> <20010124125552.D17481@thune.yy.com> <003f01c08673$75d617e0$0101a8c0@godzone.net.nz> <20010124181731.G17481@thune.yy.com> <00d401c08729$077cc440$0101a8c0@godzone.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox