CRON Functions
Description
Alpha Anywhere provides the following Xbasic functions for working with CRON expressions.
For more information on working with CRON expressions, see How to run scheduled reports - CRON Jobs.
- Name
- Description
- a5_updateCRONLog Function
Use a5_updateCRONLog() to add entries to the CRON Job Log system table when a CRON job runs. This helper function is typically called at the end of the .a5w page that implements the job to record whether it succeeded or failed.
- cron_describe Function
Returns a human-readable description of a CRON expression.
- cron_nextExecutionTime Function
Returns the next execution time for a CRON expression as a date/time string.
- cron_validate Function
Validates a CRON expression. Returns the string "valid" if the expression is valid, or an error message in the form "Error: <errortext>" if the expression is invalid.