jscron
Version:
Cron Format Parser And Schedule Dates Generator
22 lines (20 loc) • 767 B
TypeScript
export declare class jscron {
/**
Cron Format
-----------
* * * * * *
| | | | | |day of week(0-6)
| | | | |month(1-12)
| | | |day of month(1-31)
| | |hour(0-23)
| |minute(0-59)
|seconds(0-59)
* - all the options for that field
* /2- starting from the first option, every other option
0 - only use the explicitly provided option
2,4 - use list of values provided, separated by comma
*/
static parse(cron: string, startTimeUnix: number, endTimeUnix: number): number[];
static timeToCron(time: number): string;
static _findOptions(cron: string): [number[], number[], number[], number[], number[], number[]] | null;
}