Contents

/**
*
*
* There are two ways to make a calculation. You can use either calculate() or add() and subtract()
* $obj->calculate("month", 2, "add"); is the same as: $obj->add("month", 2);
* $obj->calculate("month", 2, "subtract"); is the same as: $obj->subtract("month", 2);
*
*
* When using the add() subtract() or calculate() functions, you may provide a unit of time in almost any
* form imaginable.
* Example: If you want to add 30 seconds to the date/time, you may use any of the following:
* $obj->add("second", 30);
* $obj->add("seconds", 30);
* $obj->add("sec", 30);
* $obj->add("sec.", 30);
* $obj->add("secs", 30);
* $obj->add("secs.", 30);
* $obj->add("s", 30);
* $obj->add("s.", 30);
*
*
*
*/

//
// The following is a list of example date/time calculations with this class.
// You can use many different date/time formats, you only need to provide the mask (as in the php date() function)
// Currently, d, j, S, D, m, M, n, o, Y, y, a, A, g, G, h, H, i, s are supported.
//
// Dates and times without leading zeros will also work too (example: 5/25/08 5:45pm)
//