Dear list,

I am making a query to a database where I have a column which stores
time in unix epoch format (1347517370). Then I use this query in
sqlgrid.form to present results to the user. However, I would like to
convert the epoch format into normal time representation as below:

time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1347517370))

How can I apply such a function to a specific column in a query so
then the visual result is nicer and user readable?

Thanks,
Anna

-- 
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