Hacker News new | past | comments | ask | show | jobs | submit login

Both datetime.utcnow() and datetime.utcfromtimestamp() have red box warnings in the documentation. People copying code from StackOverflow won’t see them, of course.

I should mention that the warnings are relatively recent, added in 3.8.

https://docs.python.org/3/library/datetime.html#datetime.dat...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: