time calculation

Поиск
Список
Период
Сортировка
От qradius@qnet.com.pe
Тема time calculation
Дата
Msg-id 200111291510.fATFAcm73179@postgresql.org
обсуждение исходный текст
Список pgsql-general
Dear sirs:

Please I need to solve this problem:

I need to sustract two values timestamp type and return the
difference in seconds, exists some funciton on postgresql for
do this?

e.g:

I have value1='2001-10-01 12:50:13' and value2='2001-09-10
12:53:10'

I need to calculate value1-value2 and return how many seconds
there are between both timestamps.

thank you

Ernesto

---------------------------------------------
Este mensaje fue enviado a trav�s de Qnet
http://www.qnet.com.pe



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem in 'select' from temp table with Perl/DBI
Следующее
От: Antonio Fiol Bonnín
Дата:
Сообщение: Re: time calculation