def _get_tz(tz):
 zone = tslib.get_timezone(tz)
 if (zone is None):
  zone = tslib.tot_seconds(tz.utcoffset())
 return zone

def _get_tz ( tz ) : zone = tslib . get_timezone ( tz ) if ( zone is None ) : zone = tslib . tot_seconds ( tz . utcoffset ( ) ) return zone
for a tz-aware type .