Re: diff between two timestamps.

Поиск
Список
Период
Сортировка
От Harry Broomhall
Тема Re: diff between two timestamps.
Дата
Msg-id 200307291020.LAA05766@haeb.noc.uk.easynet.net
обсуждение исходный текст
Ответ на diff between two timestamps.  (HK <harikrishnan@midascomm.com>)
Список pgsql-novice
HK writes:
> Hi all,
>     Can i get the difference between two timestamps in seconds.
>  If i use
> t1 timestamp;
> t2 timestamp;
> select t1 - t2;
> i get something like "10 days" or "00:10".
>
> Can i get the number of seconds elapsed between the two timestamps.
> Plz help me. I am trying the first time using the stored procedures.


   Use extract(epoch from interval) to get this.  More details can be
found in the Functions and Operators section of the Users Guide.

   Regards,
       Harry.


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

Предыдущее
От: HK
Дата:
Сообщение: diff between two timestamps.
Следующее
От: "Mel Jamero"
Дата:
Сообщение: Re: Retrieving NULL records