Hello folks,
Newbie Python programmer here. I am just beginning to learn the pytz time zone module.
Can you please explain how I get an UTC offset integer value from an Olsen / IANA timezone with the "region/city" format?
For example, I would like to get the integer value "2" as output from the input "Europe/Copenhagen", because this timezone is UTC+2 (during daylight saving, else UTC+1)
Cheers, and thanks in advance!
Mike
Newbie Python programmer here. I am just beginning to learn the pytz time zone module.
Can you please explain how I get an UTC offset integer value from an Olsen / IANA timezone with the "region/city" format?
For example, I would like to get the integer value "2" as output from the input "Europe/Copenhagen", because this timezone is UTC+2 (during daylight saving, else UTC+1)
Cheers, and thanks in advance!
Mike