Documented here: http://web2py.com/book/default/chapter/12#Pretty-dates

On Tuesday, April 26, 2011 7:32:23 PM UTC-4, Martin.Mulone wrote:

> from gluon.tools import prettydate
> post_time = prettydate(post.published_on)
>
> 2011/4/26 danto <web2p...@gmail.com>
>
>> 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