Re: is there a way to get hh:mm:ss given seconds

From: Tod McQuillin <devin(at)spamcop(dot)net>
To: Narendra A <narendraa(at)subexgroup(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: is there a way to get hh:mm:ss given seconds
Date: 2002-07-09 14:41:23
Message-ID: 20020709234014.Y68009-100000@glass.pun-pun.prv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Stanaway 2002-07-09 14:58:17 Re: is there a way to get hh:mm:ss given seconds
Previous Message Achilleus Mantzios 2002-07-09 14:30:29 Re: export plpgsql function to file