pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tod McQuillin <devin@spamcop.net>
To: Narendra A <narendraa@subexgroup.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: is there a way to get hh:mm:ss given seconds
Date: Tue, 9 Jul 2002 23:41:23 +0900 (JST)
Message-ID: <20020709234014.Y68009-100000@glass.pun-pun.prv> (raw)
In-Reply-To: <001f01c2268b$c81ae2b0$19ba10ac@narendraa>

On Mon, 8 Jul 2002, Narendra A wrote:

> Is there a way in sql such that if I give seconds it should me return me
> hours:mins:seconds
>
> Eg. Seconds     hh:mm:ss
> 422              1:01:02

foo=# select '422 seconds'::interval;
 interval
----------
 00:07:02
(1 row)
-- 
Tod McQuillin







view thread (6+ messages)  latest in thread

Message-ID: <20020709234014.Y68009-100000@glass.pun-pun.prv>
Permalink:  ../20020709234014.Y68009-100000@glass.pun-pun.prv/
Also on:    postgresql.org/message-id/20020709234014.Y68009-100000@glass.pun-pun.prv

 · 

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: devin@spamcop.net, narendraa@subexgroup.com
  Subject: Re: is there a way to get hh:mm:ss given seconds
  In-Reply-To: <20020709234014.Y68009-100000@glass.pun-pun.prv>
  References: <001f01c2268b$c81ae2b0$19ba10ac@narendraa> <20020709234014.Y68009-100000@glass.pun-pun.prv>

* 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