Cron Expression

screenshot of Cron Expression

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

Overview:

The PHP Cron Expression Parser is a tool that can parse CRON expressions, determine if they are due to run, calculate the next and previous run dates, and handle various frequency configurations. This parser can calculate dates far into the future or past by skipping a specified number of matching dates, making it a versatile and powerful tool for scheduling tasks.

Features:

  • Parse CRON Expressions: Parses CRON expressions to determine if they are due to run.
  • Calculate Next Run Date: Calculates the next run date of a CRON expression.
  • Calculate Previous Run Date: Calculates the previous run date of a CRON expression.
  • Handle Various Frequency Configurations: Can handle increments of ranges, intervals, lists, finding nearest weekday, last day of the month, last given weekday of a month, and nth weekday of a given month.

Summary:

The PHP Cron Expression Parser is a versatile tool for handling CRON expressions in PHP. It can parse, calculate next and previous run dates, and handle various frequency configurations. With the ability to calculate dates far into the future or past by skipping matching dates, this parser is a valuable resource for scheduling tasks efficiently.