def get_time_zone_offset(time_zone, date_time=None):
 date_time = (datetime.now(utc) if (date_time is None) else date_time)
 return _format_time_zone_string(time_zone, date_time, '%z')

def get_time_zone_offset ( time_zone , date_time = None ) : date_time = ( datetime . now ( utc ) if ( date_time is None ) else date_time ) return _format_time_zone_string ( time_zone , date_time , '%z' )
returns the time zone offset of the time zone for given datetime .