Skip to main content

Class: Cron

cron/src.Cron

Constructors

constructor

new Cron(cron)

Parameters

NameTypeDescription
cronstring

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:21

Properties

cron

cron: string

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:10


days

days: number[]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:14


dows

dows: number[]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:16


hours

hours: number[]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:13


minutes

minutes: number[]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:12


months

months: number[]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:15


normalized

normalized: string

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:11

Methods

next

next(outset?, origin?): Date

Parameters

NameTypeDefault valueDescription
outsetDateundefined
originbooleantrue

Returns

Date

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:32


normalize

Static Private normalize(cron): string

Parameters

NameTypeDescription
cronstring

Returns

string

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:55


parsePart

Static Private parsePart(cronPart, id): number[]

Parameters

NameTypeDescription
cronPartstring
idnumber

Returns

number[]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:101


parseString

Static Private parseString(cron): number[][]

Parameters

NameTypeDescription
cronstring

Returns

number[][]

Defined in

projects/utilities/packages/cron/src/lib/Cron.ts:90