Re: Problem with Dates - Mailing list pgsql-sql

From Glen and Rosanne Eustace
Subject Re: Problem with Dates
Date
Msg-id 00d401c08729$077cc440$0101a8c0@godzone.net.nz
Whole thread Raw
In response to Problem with Dates  ("Glen and Rosanne Eustace" <agree@godzone.net.nz>)
Responses Re: Re: Problem with Dates  (Christopher Sawtell <csawtell@xtra.co.nz>)
Re: Re: Problem with Dates  (Christopher Sawtell <csawtell@xtra.co.nz>)
List 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.




pgsql-sql by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: Don't want blank data
Next
From: Ron Peterson
Date:
Subject: Re: Is there anything like DESCRIBE?