def time_zones_for_number(numobj):
 ntype = number_type(numobj)
 if (ntype == PhoneNumberType.UNKNOWN):
  return _UNKNOWN_TIME_ZONE_LIST
 elif (not _can_be_geocoded(ntype)):
  return _country_level_time_zones_for_number(numobj)
 return time_zones_for_geographical_number(numobj)

def time_zones_for_number ( numobj ) : ntype = number_type ( numobj ) if ( ntype == PhoneNumberType . UNKNOWN ) : return _UNKNOWN_TIME_ZONE_LIST elif ( not _can_be_geocoded ( ntype ) ) : return _country_level_time_zones_for_number ( numobj ) return time_zones_for_geographical_number ( numobj )
as time_zones_for_geographical_number() but explicitly checks the validity of the number passed in .