Skip to content

Next occurrence support

Choose a tag to compare

@rautio rautio released this 08 Oct 04:36
· 83 commits to main since this release

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());