UNPKG

cronosjs-extended

Version:

A cron based task scheduler for node and the browser, with extended syntax and timezone support.

46 lines (45 loc) 1.49 kB
import { WarningType, Warning } from './parser'; import { CronosTimezone } from './date'; import { DateSequence } from './scheduler'; export declare class CronosExpression implements DateSequence { readonly cronString: string; private readonly seconds; private readonly minutes; private readonly hours; private readonly days; private readonly months; private readonly years; private timezone?; private skipRepeatedHour; private missingHour; private _warnings; private constructor(); static parse(cronstring: string, options?: { timezone?: string | number | CronosTimezone; skipRepeatedHour?: boolean; missingHour?: CronosExpression['missingHour']; strict?: boolean | { [key in WarningType]?: boolean; }; }): CronosExpression; get warnings(): Warning[]; toString(): string; nextDate(afterDate?: Date): Date | null; private _next; nextNDates(afterDate?: Date, n?: number): Date[]; private _nextYear; private _nextMonth; private _nextDay; private _nextHour; private _nextMinute; private _nextSecond; previousDate(beforeDate?: Date): Date | null; private _previous; previousNDates(beforeDate?: Date, n?: number): Date[]; private _previousYear; private _previousMonth; private _previousDay; private _previousHour; private _previousMinute; private _previousSecond; }