"4 minutes ago"

40 views
Skip to first unread message

Ricardo Cárdenas

unread,
Mar 22, 2013, 9:27:32 PM3/22/13
to web...@googlegroups.com
My google-fu has not helped me come up with an answer...

Django has a set of template filters they call "humanize" which will add a nice touch to data. (Java also has a lib called PrettyTime.) For example it will convert "Fri Mar 22, 20:23" into "4 minutes ago", or "Fri Mar 21" into "yesterday". Is there something similar in web2py?

best regards -Ricardo

LightDot

unread,
Mar 22, 2013, 9:50:00 PM3/22/13
to web...@googlegroups.com

Ricardo Cárdenas

unread,
Mar 22, 2013, 10:10:30 PM3/22/13
to web...@googlegroups.com
Got it - thanks.
Reply all
Reply to author
Forward
0 new messages