CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due