I am looking to get the timezone of the physical, virtual, container node?
The following provides me with short timezone name -
import datetime
import dateutil.tz
tz_name = datetime.datetime.now(dateutil.tz.tzlocal()).tzname()
The above gives me MDT or EDT depending on the node's timezone.
How I can get the full timezone name e.g. America/New_York or America/Denver instead?
Edit: OK I think the following would work for me -
from datetime import datetime
from tzlocal import get_localzone
_now = datetime.now(tz=get_localzone())
_now.tzinfo.key # prints America/New_York