經安全檢測,此網站為安全網站,請放心前往原始網址!

datetime - How to get current time in Python - Stack Overflow

There is timezone module in Python 3. You don't need .localize() method for pytz.utc timezone. The purpose of tz.localize(dt, is_dst=None) method is to choose an appropriate for dt utc offset if tz has different utc offsets over the years and raise an exc

stackoverflow.com

網址安全性掃描由 google 提供