I am trying to get the UTC offset as a string from my timezone using the Python library pytz.
I am defining it as follows:
import pytz
tz = pytz.timezone('Africa/Cairo')
Now, I want to get '+02:00' from the tz
variable, as that is the corresponding UTC offset for Africa/Cairo.
How can I do this? Thanks!