Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yup, works fine if you're doing things only locally. However, if you're using timezone aware datetime objects you're out of luck, because then datetime.timedelta doesn't immediately apply.

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: