pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Albert REINER <areiner@tph.tuwien.ac.at>
To: PostgreSQL-SQL <pgsql-sql@postgreSQL.org>
Subject: '13 months ago'::reltime
Date: Tue, 1 May 2001 14:36:43 +0200
Message-ID: <20010501143643.A929@frithjof> (raw)

Saluton,

I do not quite understand the following:

,----
| albert=> select '13 months ago'::reltime;
| 	?column?
| ---------------------
|  1 year 25 00:00 ago
| (1 row)
| 
| albert=> select '13 months ago'::interval;
| 	  ?column?
| ------------------------
|  1 year 1 mon 00:00 ago
| (1 row)
| 
| albert=> select version();
| 				version
| --------------------------------------------------------------------
|  PostgreSQL 7.0.2 on i586-pc-linux-gnulibc1, compiled by gcc 2.95.1
| (1 row)
`----

Shouldn't 13 months be 1 year and 1 month even for reltime?

Somewhat puzzled,

Albert.




view thread (4+ messages)  latest in thread

Message-ID: <20010501143643.A929@frithjof>
Permalink:  ../20010501143643.A929@frithjof/
Also on:    postgresql.org/message-id/20010501143643.A929@frithjof

 · 

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: areiner@tph.tuwien.ac.at
  Subject: Re: '13 months ago'::reltime
  In-Reply-To: <20010501143643.A929@frithjof>
  References: <20010501143643.A929@frithjof>

* 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