From: Willem de Jong <Jong@dnaservices.com>
To: pgsql-sql@postgresql.org
Subject: Seconds To Time
Date: Tue, 11 May 2004 08:08:34 +0000 (UTC)
Message-ID: <Xns94E66746D6F29Jongdatdnaservicesdo@200.46.204.72> (raw)
Hi all,
I'm a newby to PGSQL, I allways use MySQL, but now we use PGSQL, so i had
to convert all the MySQL-Query's to PGSQL.
In MySQL we have the function Sec_to_time(seconds). This will result a
time-value like '40:30:00'.
With this Query
SELECT TIMESTAMP WITH TIME ZONE 'epoch' + sum(elapsed)/1000 * interval '1
second' from Table1 GROUP BY ...
The result is a timestamp from the unixtime + the seconds elapsed.
How can I convert this to a time-value?
Thanks in advance
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: Jong@dnaservices.com
Subject: Re: Seconds To Time
In-Reply-To: <Xns94E66746D6F29Jongdatdnaservicesdo@200.46.204.72>
* 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