On Tuesday, September 2, 2014 2:21:16 PM UTC-7, Leonel Câmara wrote:
>
> People use pretty dates like "20 minutes ago" because they're prettier and 
> easier for humans. A better solution than using a simple date instead of a 
> pretty one is to continuously update the prettydate. Something you can 
> easily accomplish using javascript.
>

I don't mind the pretty date being updated, but I still want to be able to 
find the date loaded AS WELL.  Pretty dates work well if you also provide 
the "anchor" (semantic anchor, not html anchor) for them.
 

>
> In fact, reddit does it. If you notice the submission date in the comments 
> keeps being updated. I have implemented a similar solution to reddit for a 
> web2py application using ractive.
>
> Here is the javascript prettydate function I used.
>
>
Thanks for providing this.  There are places where I'll find this useful, 
but I'll also provide a "last updated" field somewhere visible.

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to