Re: Calculating relative time/distance from CURRENT_TIMESTAMP

Поиск
Список
Период
Сортировка
От Gnanakumar
Тема Re: Calculating relative time/distance from CURRENT_TIMESTAMP
Дата
Msg-id 009001cc534f$12625de0$372719a0$@com
обсуждение исходный текст
Ответ на Re: Calculating relative time/distance from CURRENT_TIMESTAMP  (Samuel Gendler <sgendler@ideasculptor.com>)
Список pgsql-sql
> If you really want a flexible function for doing this, I suspect you could
replicate the functionality of jquery's 'timeago' module in a stored proc
relatively easily. http://timeago.yarp.com/ It is MIT licensed, so you can
copy the logic without restriction.  It makes reference to being derivative
of a ruby project, so you could probably grab that code and convert it to
ruby-pg very easily.
 
Thanks for that useful link.  I believe in my case this will work out.
Thanks again.




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

Предыдущее
От: Samuel Gendler
Дата:
Сообщение: Re: Calculating relative time/distance from CURRENT_TIMESTAMP
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Generic design: char vs varchar primary keys