Re: Simple Question

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Simple Question
Дата
Msg-id 20050111141941.U5847@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Simple Question  (Terry Lee Tucker <terry@esc1.com>)
Список pgsql-sql
On Tue, 11 Jan 2005, Terry Lee Tucker wrote:

> Hello:
>
> I'm trying to figure out how to convert a floating point value into an
> interval of time. I'm calculating the time required to drive from point A to
> point B. For the sake of this question, we'll just say it is miles/speed. So:
>
> drv_time = 478 / 45.0;
>
> The value of this is: 10.6222222222222222

I think something like478/45.0 * interval '1 hour'
may do what you want.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Simple Question
Следующее
От: Terry Lee Tucker
Дата:
Сообщение: Re: Simple Question