timestamp validation as a static method