I found the answer. 
 yesterday = request.now - datetime.timedelta( days=1)
I'm loving web2py and about to complete a major project. 
Thanks to Massimo and crew! 

On Sunday, January 18, 2015 at 12:48:03 AM UTC-6, Mark Anderson wrote:
>
> Should be an easy one...
> How do I subtract one day from a request.now? Seems like it should be easy 
> but I can't find clear documentation. I tried subtracting 86400 but 
> request.now is in a datetime format. 
> Thanks in advance. 
>

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