parameters: (tz)
return_statement: return zone
docstring: for a tz-aware type, return an encoded zone
docstring_summary: for a tz-aware type, return an encoded zone
docstring_tokens: for a tz - aware type return an encoded zone
function: def _get_tz(tz):
      """ for a tz-aware type, return an encoded zone """
      zone = timezones.get_timezone(tz)
      if zone is None:
          zone = tz.utcoffset().total_seconds()
      return zone
function_tokens: def _get_tz ( tz ) : zone = timezones . get_timezone ( tz ) if zone is None : zone = tz . utcoffset ( ) . total_seconds ( ) return zone