Re: BUG #1107: Missing feature: interval <-> numeric quantity
В списке pgsql-bugs по дате отправления:
| От | Stephan Szabo |
|---|---|
| Тема | Re: BUG #1107: Missing feature: interval <-> numeric quantity |
| Дата | |
| Msg-id | 20040318064620.J47930@megazone.bigpanda.com обсуждение |
| Ответ на | BUG #1107: Missing feature: interval <-> numeric quantity conversion ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>) |
| Список | pgsql-bugs |
On Thu, 18 Mar 2004, PostgreSQL Bugs List wrote:
> Having two timestamps it is common need to know how many
> seconds/minutes/hours/days/etc. passed from one to the other. However there
> is no easy way to do this task.
>
> The basic idea is subtracting the two timestamps. However it gives a data
> type called "interval". The thing I would like to have is a function that
> takes the "interval" and outputs it's length. Currently when I want a
date_part('epoch', intervalval)
or
EXTRACT(EPOCH FROM intervalval)
gives the number of seconds in the interval as per the documentation of
these functions in the date/time functions and operators section of the
documentation.
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера