In the last example titled "Calculate a run date relative to a specific time", the argument passed to getNextRunDate should be a string (since it's later passed to the DateTime constructor). So, just remove the strtotime function.
BTW, thanks a ton for this. I've had a heck of a time writing my own parser.
In the last example titled "Calculate a run date relative to a specific time", the argument passed to getNextRunDate should be a string (since it's later passed to the DateTime constructor). So, just remove the strtotime function.
BTW, thanks a ton for this. I've had a heck of a time writing my own parser.