I have a python datetime.datetime object. What is the best way to subtract one day?
e.g.
from datetime import date, timedelta d=date.today()-timedelta(days=days_to_subtract)
Subtract datetime.timedelta(days=1)
datetime.timedelta(days=1)