Cron Utilities

Overview

Includes multiple cron functions to facilitate scheduling using cron strings.

Key Features & Functionality

Expression Functions:

  • cronDescribe - describes a cron schedule in plain text
  • cronNextExecution - returns datetime when next execution should occur
  • cronNextXExecutions - returns datetime when next X executions should occur
  • cronLastExecution - returns datetime when last execution should have occurred
  • cronNeedsExecution - returns true/false whether a cron schedule needs to trigger based on a previous run date

Reference the cron-utils repository for cron syntax examples: https://github.com/jmrozanec/cron-utils?tab=readme-ov-file

Anonymous