How can I print current date/time formatted in a way which include correct timezone indication? I read datetime
format mini-language here and so I've simply tried:
>>> '{:%Y-%m-%d %H:%M:%S %z}'.format(datetime.now())
'2014-10-04 20:33:07 '
But as you can see timezone is not printed. My locale is it-IT
, hours/minutes is correct, so I expected %z
to print +0200
.