PHP Class to manipulate time