UNPKG

1.13 kBTypeScriptView Raw
1import { DateTime, Zone } from 'luxon';
2import { CronJobParams } from './types/cron.types';
3export declare class CronTime {
4 source: string | DateTime;
5 timeZone?: string;
6 utcOffset?: number;
7 realDate: boolean;
8 private second;
9 private minute;
10 private hour;
11 private dayOfMonth;
12 private month;
13 private dayOfWeek;
14 constructor(source: CronJobParams['cronTime'], timeZone?: CronJobParams['timeZone'], utcOffset?: null);
15 constructor(source: CronJobParams['cronTime'], timeZone?: null, utcOffset?: CronJobParams['utcOffset']);
16 private _getWeekDay;
17 private _verifyParse;
18 sendAt(): DateTime;
19 sendAt(i: number): DateTime[];
20 getTimeout(): number;
21 toString(): string;
22 toJSON(): string[];
23 getNextDateFrom(start: Date | DateTime, timeZone?: string | Zone): DateTime<boolean>;
24 private _findPreviousDSTJump;
25 private _checkTimeInSkippedRange;
26 private _checkTimeInSkippedRangeSingleHour;
27 private _checkTimeInSkippedRangeMultiHour;
28 private _forwardDSTJump;
29 private _wcOrAll;
30 private _hasAll;
31 private _parse;
32 private _parseField;
33}