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

datetime.now(tz=timezone.utc) is what you probably want most of the time anyway. You can always manually strip off the time zone component if you really want to use datetimes without associated time zones.


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

Search: