Ecclesiastes 3 doesn't mention this specifically, but since it does say "to every thing there is a season," it can reasonably be inferred: A time to be funny and a time to keep your trap shut:
A man who police said struck an officer with his pickup truck outside Indianapolis Motor Speedway after the Brickyard 400 was arrested after officers determined that he had been drinking.