>>> datetime.datetime.now() - datetime.timedelta(days=1)
datetime.datetime(2012, 2, 1, 23, 33, 30, 591993)Just creating timezone aware datetime objects is really too difficult with the standard library anyway. You need to install `pytz` or create your own `datetime.tzinfo` classes just to be able to represent timezones.
To top it off, if you have datetime objects with timezones and datetime objects without timezone information (*even created using utcfromtimezone()!), you can't compare them.
I can't remember for sure but I don't think you can subtract two dates and get a delta?
When taking into account DST, you should first convert from local time to UTC (pytz does this) before doing your calculations, then convert it back to local time if needed.
And yes, you do get a delta when subtracting two dates.
Then again, days can consist of a variable number of seconds due to e.g. the leap second.