And why you would be passing a date, time, or name near a shell. I'm still confused. That's still thinking from the wrong end.
As for your DROP TABLE example, if you are using placeholders correctly, that value wouldn't matter.
So, I'm still not convinced that there needs to be a standard "untainting" library. When the data is handled properly, we don't need to "match" "safe" data. Period.