From: Tom Lane <tgl@sss.pgh.pa.us>
To: Terry Lee Tucker <terry@esc1.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Simple Question
Date: Tue, 11 Jan 2005 17:43:20 -0500
Message-ID: <4791.1105483400@sss.pgh.pa.us> (raw)
In-Reply-To: <200501111642.21716.terry@esc1.com>
References: <200501111642.21716.terry@esc1.com>
Terry Lee Tucker <terry@esc1.com> writes:
> I'm trying to figure out how to convert a floating point value into an
> interval of time.
Use something like
regression=# select (478 / 45.0) * '1 hour'::interval;
?column?
----------
10:37:20
(1 row)
... or whatever other scale factor you have in mind.
regards, tom lane
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: tgl@sss.pgh.pa.us, terry@esc1.com
Subject: Re: Simple Question
In-Reply-To: <4791.1105483400@sss.pgh.pa.us>
* 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