'13 months ago'::reltime

From: "Albert REINER" <areiner(at)tph(dot)tuwien(dot)ac(dot)at>
To: PostgreSQL-SQL <pgsql-sql(at)postgreSQL(dot)org>
Subject: '13 months ago'::reltime
Date: 2001-05-01 12:36:43
Message-ID: 20010501143643.A929@frithjof
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message John Coers 2001-05-01 15:49:11 Re: Copy
Previous Message Anuradha Ratnaweera 2001-05-01 08:52:43 Re: Heres a good one...