Python3 and getting datetime with tz_info timezone info

Last Modified: Thu, 12 Apr 2018 15:55:15 +0000 ; Created: Thu, 12 Apr 2018 15:54:46 +0000

When using something like you would expect to get the timezone on the end or a trailing Z.

However both the .now() and .utcnow() only return naive objects with tz_info of None

If you don't want to use 3rd party libraries (solution for longest time until Python 3.2+) you can use the following tricks:


enhanced_now =

enhanced_now_utc =


Python: Figure out local timezone ;; vbem; August 22, 2016

Misc Refs