def has_no_time(at):
 if isinstance(at, datetime):
  return False
 return ((at.hour is None) and (at.minute is None) and (at.second is None) and (at.microsecond is None))

def has_no_time ( at ) : if isinstance ( at , datetime ) : return False return ( ( at . hour is None ) and ( at . minute is None ) and ( at . second is None ) and ( at . microsecond is None ) )
returns true if the given object is an adatetime where hour .