[web2py] Re: request.now - one day

2015-01-19 Thread Mark Anderson
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

[web2py] request.now - one day

2015-01-18 Thread Mark Anderson
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 (Documenta