PHP 5: Date and Time Calculator elac dude (contact me)
This class can be used to add or subtract date and time values in customizable formats using format modifiers like the PHP date() function.
It can set the date and time to a given value and then it can add or subtract a given amount of time in either seconds, minutes, hours, days, weeks, months or years.
The class functions can either return the resulting date and time or store it in a class variable for performing further add or subtract operations.