A simple web application to calculate the next scheduled times for cron expressions.
- Parse cron expressions and get the next 5 scheduled times
- Support for different timezones
- Common cron expression examples
- Simple, easy-to-use interface (tbc)
The application provides the following API endpoints:
-
/api/parse- Parse a cron expression and return the next 5 scheduled times- Query Parameters:
expr: The cron expression to parsetz(optional): The timezone to use (defaults to UTC)
- Query Parameters:
-
/api/timezones- Get a list of available timezones
- Ensure you have Go installed on your system
- Clone this repository
- Run the application:
go run main.go
# Or build it first and run
go build -o croncalc
./croncalcBy default, the application runs on port 8010, but you can configure this in the .env
CronCalc supports standard cron expressions with five fields:
┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of month (1 - 31)
│ │ │ ┌───────────── month (1 - 12)
│ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday)
│ │ │ │ │
* * * * *
It also supports special expressions like @reboot.