def has_no_date(at):
 if isinstance(at, datetime):
  return False
 return ((at.year is None) and (at.month is None) and (at.day is None))

def has_no_date ( at ) : if isinstance ( at , datetime ) : return False return ( ( at . year is None ) and ( at . month is None ) and ( at . day is None ) )
returns true if the given object is an adatetime where year .