Skip to content
Advertisement

Get UTC offset from time zone name in python

How can I get UTC offset from time zone name in python?

For example: I have Asia/Jerusalem and I want to get +0200

Advertisement

Answer

Because of DST (Daylight Saving Time), the result depends on the time of the year:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement