From: Mark Volpe <volpe.mark@epamail.epa.gov>
To: Brian C. Doyle <bcdoyle@mindspring.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Time Help
Date: Tue, 22 Aug 2000 09:55:12 -0400
Message-ID: <39A28640.DF45460B@epamail.epa.gov> (raw)
References: <4.3.2.7.2.20000822063805.095ddf00@pop>
I'm not sure at all what you are asking, but I'm thinking you're trying to
convert a "timespan" to a "time". Try adding it to a time like this:
SELECT '0:00:00'::time + '02:10:06'::timespan;
Mark
"Brian C. Doyle" wrote:
>
> Hello all,
>
> I have a query result of @ 2 hours 10 mins 6 secs and I would like to
> change that to 02:10:06. Currently the field is listed as "timespan" This
> allows me to input date as 02:10:06 or 4h 10m 6s or even 2hrs 10 min 6 sec
> which are all the formats that I will be entering the time formats! How do
> I convert it into a the format of 02:10:06
>
> Thanks to you all
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: volpe.mark@epamail.epa.gov, bcdoyle@mindspring.com
Subject: Re: Time Help
In-Reply-To: <39A28640.DF45460B@epamail.epa.gov>
References: <4.3.2.7.2.20000822063805.095ddf00@pop> <39A28640.DF45460B@epamail.epa.gov>
* 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