Pre OBDII now qualifies as antiques, which I think are emission exempt in most states.
Post OBDII, codes not recently cleared is also reported by OBDII. It is just software, and the software can pretend what the programmer wants.
So I maintain my answer: always
Newer vehicles usually only require the OBDII review and they will double check codes haven't been cleared recently and all sensors are in spec. No dyno or tailpipe measurements are required in CA on year 2000 and newer.
This is why smog shops offer $20-$40 for year 2000 and newer and $70+ for 1999 and older. It's more human time intensive to test year 1999 and older.