def O(self):
        if not self.timezone:
            return ""

        seconds = self.Z()
        if seconds == "":
            return ""
        sign = '-' if seconds < 0 else '+'
        seconds = abs(seconds)
        return "%s%02d%02d" % (sign, seconds // 3600, (seconds // 60) % 60)
Difference to Greenwich time in hours; e.g. '+0200', '-0430'.
dataset/ETHPy150Open django/django/django/utils/dateformat.py/TimeFormat.O