Simple time class for php