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

Yes, the datetime api once timezone is involved is quite bad in python.

This is why for anything that uses timezone, I use pendulum: https://pendulum.eustace.io/

It's compatible with the datetime api, but it has sane default, nice tools to convert between timezone, some cool date adjustment stuff, and can humanize time in several languages.

Basically, datetime has the same problem as text vs raw bytes in python 2.7, except it has never been fixed.



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

Search: