Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ldm(at)apartia(dot)ch
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-sql(at)postgresql(dot)org
Subject: Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
Date: 2000-09-23 16:46:18
Message-ID: 1823.969727578@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Louis-David Mitterrand <cunctator(at)apartia(dot)ch> writes:
> By the way, is it normal that the "day" word doesn't appear in the interval?

> auction=# select interval(now()::abstime::int4);
> interval
> ----------------------------
> 30 years 9 mons 3 15:42:09
> (1 row)

Looks like a bug to me ... Thomas, do you agree?

Curiously, it appears that the interval input converter will accept this
with or without the 'days' keyword included.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff MacDonald 2000-09-23 17:37:29 select
Previous Message Tom Lane 2000-09-23 16:20:07 Re: [SQL] how to store a query, that results in a table