translate schedules to english
curl -sX POST 'https://api.whittly.dev/v1/cron/parse' \
-H 'Authorization: Bearer $WHITTLY_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"expression":"*/5 9-17 * * 1-5"}'
const res = await fetch('https://api.whittly.dev/v1/cron/parse', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({ expression: "*/5 9-17 * * 1-5" }),
});
const data = await res.json();
const { data } = await axios.post(
'https://api.whittly.dev/v1/cron/parse',
{ expression: "*/5 9-17 * * 1-5" },
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
A cron expression is a compact notation for recurring schedules used in Unix cron jobs, Kubernetes CronJobs, CI/CD pipelines, and task schedulers. This parser translates any expression into plain English and shows the next scheduled run times.