pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Castle <dalgoda@ix.netcom.com>
To: pgsql-sql@postgresql.org
Subject: Re: Problem with Dates
Date: Wed, 24 Jan 2001 18:17:31 -0800
Message-ID: <20010124181731.G17481@thune.yy.com> (raw)
In-Reply-To: <003f01c08673$75d617e0$0101a8c0@godzone.net.nz>
References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz>
	<20010124125552.D17481@thune.yy.com>
	<003f01c08673$75d617e0$0101a8c0@godzone.net.nz>

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@ix.netcom.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



view thread (19+ messages)  latest in thread

Message-ID: <20010124181731.G17481@thune.yy.com>
Permalink:  ../20010124181731.G17481@thune.yy.com/
Also on:    postgresql.org/message-id/20010124181731.G17481@thune.yy.com

 · 

reply

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: dalgoda@ix.netcom.com
  Subject: Re: Problem with Dates
  In-Reply-To: <20010124181731.G17481@thune.yy.com>
  References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz> <20010124125552.D17481@thune.yy.com> <003f01c08673$75d617e0$0101a8c0@godzone.net.nz> <20010124181731.G17481@thune.yy.com>

* 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