def is_null_datelike_scalar(other):
 if ((other is NaT) or (other is None)):
  return True
 elif is_scalar(other):
  if hasattr(other, 'dtype'):
   return (other.view('i8') == iNaT)
  elif (is_integer(other) and (other == iNaT)):
   return True
  return isnull(other)
 return False

def is_null_datelike_scalar ( other ) : if ( ( other is NaT ) or ( other is None ) ) : return True elif is_scalar ( other ) : if hasattr ( other , 'dtype' ) : return ( other . view ( 'i8' ) == iNaT ) elif ( is_integer ( other ) and ( other == iNaT ) ) : return True return isnull ( other ) return False
test whether the object is a null datelike .