from gluon.tools import prettydate
post_time = prettydate(post.published_on)

2011/4/26 danto <[email protected]>

> Hi to all,
>
> do you know how to format a date/time to show as "one hour ago" and such?
> I know i could be done with time delta, but it is any helper available in
> web2py to do this?
>
> thanks in advance
>
> best regards
> danto
>



-- 
 http://martin.tecnodoc.com.ar

Reply via email to