def is_datetimelike(data):
 try:
  maybe_to_datetimelike(data)
  return True
 except Exception:
  pass
 return False

def is_datetimelike ( data ) : try : maybe_to_datetimelike ( data ) return True except Exception : pass return False
return a boolean if we can be successfully converted to a datetimelike .