Repository navigation
Next occurrence support
Add a new nextDate function that returns the next occurrence of a given cron schedule as a JS Date object:
import { nextDate } from 'crontext';
const date = nextDate('* * * * * ', new Date());
Add a new nextDate function that returns the next occurrence of a given cron schedule as a JS Date object:
import { nextDate } from 'crontext';
const date = nextDate('* * * * * ', new Date());