

def Z(self):
    "\n        Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for\n        timezones west of UTC is always negative, and for those east of UTC is\n        always positive.\n\n        If timezone information is not available, this method returns\n        an empty string.\n        "
    if (not self.timezone):
        return ''
    try:
        offset = self.timezone.utcoffset(self.data)
    except Exception:
        return ''
    return ((offset.days * 86400) + offset.seconds)

dataset/ETHPy150Open django/django/django/utils/dateformat.py TimeFormat.Z/original