time interval format srting

Поиск
Список
Период
Сортировка
От Joao Ferreira gmail
Тема time interval format srting
Дата
Msg-id 1225818397.4564.29.camel@debj4n.critical.pt
обсуждение исходный текст
Ответы Re: time interval format srting  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: time interval format srting  (Sam Mason <sam@samason.me.uk>)
Re: time interval format srting  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
Hello,

I've been searching the docs on a simple way to convert a time
_duration_ in seconds to the format dd:hh:mm:ss, but I can't find it.

90061 --> 1d 1h 1m 1s

(90061=24*3600+3600+60+1)

any ideas ?

I've been using to_char and to_timestamp to format dates/timestamps...
but this is diferent... I want to format time intervals, durations..

cheers
Joao



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

Предыдущее
От: Eric Schwarzenbach
Дата:
Сообщение: [Fwd: Re: GEQO randomness?]
Следующее
От: Jason Long
Дата:
Сообщение: Re: JDBC and setting statement_timeout