Time regularity of the solutions to second order hyperbolic equations