Re: How cast interval to minutes as number?

Поиск
Список
Период
Сортировка
От Andreas
Тема Re: How cast interval to minutes as number?
Дата
Msg-id 47493BF0.6070006@gmx.net
обсуждение исходный текст
Ответ на Re: How cast interval to minutes as number?  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-novice
Andreas Kretschmer schrieb:
> Andreas <maps.on@gmx.net> schrieb:
>
>> This results in a column of type  interval.
>>  How would I get this interval converted into e.g. minutes.
>>
>
> Okay, lets assume i want to know how old is my daughter, in minutes:
> test=# select EXTRACT (EPOCH FROM  now() - '2007-07-28 09:15:00'::timestamp )::int/60;
>
Thanks and congratulations   ;-)

Andreas

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

Предыдущее
От: Andreas
Дата:
Сообщение: Re: How cast interval to minutes as number?
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: A question of volatility