I want to print the current date and time, with the timezone name, for the local machine. However, I can't seem to get the last bit
In [1]: from datetime import datetime
In [2]: print(datetime.now().strftime('%d %b %Y %H:%M:%S'))
09 Apr 2019 13:23:47
In [3]: print(datetime.now().strftime('%d %b %Y %H:%M:%S %Z'))
09 Apr 2019 13:23:52
I would have expected to see my PC's timezone name ('CET') added to the second string. How do I get:
09 Apr 2019 13:23:52 CET