pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Louis-David Mitterrand <cunctator@apartia.ch>
To: pgsql-sql@postgresql.org
Subject: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
Date: Sat, 23 Sep 2000 17:45:20 +0200
Message-ID: <20000923174520.A10680@styx> (raw)
In-Reply-To: <39CA6EA1.5610BD7@ipinc.com>
References: <20000921181036.3514.qmail@web805.mail.yahoo.com>
	<5.0.0.19.2.20000921145244.02438d00@pop>
	<39CA6EA1.5610BD7@ipinc.com>

On Thu, Sep 21, 2000 at 01:25:05PM -0700, Jie Liang wrote:
> Hi, there,
> 
> urldb=# create table foo(sec int4);
> CREATE
> urldb=# insert into foo values(54321);
> INSERT 382942319 1
> urldb=# select interval(reltime (sec||'secs')) from foo;
>  interval
> ----------
>  15:05:21
> (1 row)

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)

-- 
Louis-David Mitterrand - ldm@apartia.org - http://www.apartia.org

"Perl Guy and Executive Glue Sniffer"
										(stolen from Aaron Sherman's .sig)



view thread (2+ messages)  latest in thread

Message-ID: <20000923174520.A10680@styx>
Permalink:  ../20000923174520.A10680@styx/
Also on:    postgresql.org/message-id/20000923174520.A10680@styx

 · 

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: cunctator@apartia.ch
  Subject: Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
  In-Reply-To: <20000923174520.A10680@styx>
  References: <20000921181036.3514.qmail@web805.mail.yahoo.com> <5.0.0.19.2.20000921145244.02438d00@pop> <39CA6EA1.5610BD7@ipinc.com> <20000923174520.A10680@styx>

* 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