On Wednesday, December 3, 2014 8:25:31 PM UTC-8, Gideon George wrote:
>
> [model, controller skipped]
> View
>
>  I rep {{=lga}}, {{=state}} State. By {{=name}}<br/>
>             lives in {{=location}} on {{=how can I show the time here?}}
>

What time do you want to show?  The only time in your model is the posted 
field.  If you're using that, the default is for the DAL to return that as 
a string in ISO 8601 format.  If you want to use the current time (which 
will change each time the page is accessed), then you can either use 
datetime.datetime.now() in your controller (and thus use server time)  (you 
use the value to add an extra item to the dictionary your controller 
returns), or use javascript to access the time on the user's computer.

If the time is coming from another source, then you would need to 
understand what form that value is in, and how to convert it to the correct 
string format.

/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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to