Re: Problem with Dates

From: Mike Castle <dalgoda(at)ix(dot)netcom(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with Dates
Date: 2001-01-25 02:17:31
Message-ID: 20010124181731.G17481@thune.yy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, Jan 25, 2001 at 03:06:38PM +1300, Glen and Rosanne Eustace wrote:
> pressie# select '31/12/2000'::date + '1 year'::timespan;
> ?column?
> -----------------------------
> 01/01/2002 00:00:00.00 NZDT
> (1 row)

What are the outputs of
select '31/12/2000'::date;
select '31/12/2000'::date + '365 days'::timespan;

and 364, 363, etc.

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.

mrc
--
Mike Castle Life is like a clock: You can work constantly
dalgoda(at)ix(dot)netcom(dot)com and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Brett W. McCoy 2001-01-25 02:59:36 Re: Re: Problem with Dates
Previous Message Glen and Rosanne Eustace 2001-01-25 02:06:38 Re: Problem with Dates