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

>Then it is UTC

Says you. The python documentation has never said that naive datetimes are UTC. If the language suddenly makes this assumption, then you break existing code. If you don't want to break existing code, your only option is to 1.) deprecate the existing function and 2.) provide an alternative (which is provide an explicit datetime).



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

Search: