def is_iso_time(iso):
 try:
  iso_to_datetime_tuple(iso)
  return True
 except iso8601.ParseError:
  return False

def is_iso_time ( iso ) : try : iso_to_datetime_tuple ( iso ) return True except iso8601 . ParseError : return False
returns true if provided time can be parsed in iso format to a datetime tuple .