Get Multiple Next Run Times
AI-generatedSummary
Calculate multiple next run times from a cron expression.
Inputs
- cronExpression (required) — The cron expression to parse. Supports standard 5-field format (minute, hour, day, month, weekday).
- count — Number of next run times to calculate (1-100).
- currentDateTime — The date/time to calculate from. Accepts ISO strings, timestamps, or any valid date string. Leave empty to use current time.
- timezone — The timezone for calculation. Use IANA timezone names or UTC.
- outputFormat — Format for the output date/time. Options: ISO 8601 string, Unix timestamp in milliseconds, or human-readable formatted string.
- includeDetails — Whether to include additional details (cron expression, timezone, current date) in the output.
- continueOnError — Whether to continue processing other items if one fails.
Output shape
object
Returned per workflow item. Contains next_run_times array and count. Additional fields included when includeDetails is true. If an error occurs mid-iteration, the loop breaks and fewer than count times are returned; continueOnError controls whether processing continues for remaining items.
Examples
Example 1: Default execution
Uses default cron expression '0 0 * * *', count 5, current time, UTC timezone, ISO format, includeDetails true.