MCPcopy Create free account

hub / github.com/Hexagon/croner / functions

Functions185 in github.com/Hexagon/croner

↓ 1 callersMethodgetLastWeekday
* Calculates the last weekday (Mon-Fri) of a given month. * * @param year The target year. * @param month The target month (0-11). * @retu
src/date.ts:161
↓ 1 callersMethodgetMaxPatternValue
* Get the maximum value in a pattern for a given target. * Used when resetting components during backward recursion. * * @param target The ta
src/date.ts:1009
↓ 1 callersMethodgetNearestWeekday
* Calculates the nearest weekday (Mon-Fri) to a given day of the month. * Handles month boundaries. * * @param year The target year. * @pa
src/date.ts:185
↓ 1 callersMethodhandleNicknames
* Replace nicknames with actual cron patterns * * @param pattern Pattern, may contain nicknames, or not * * @returns Pattern, with cron ex
src/pattern.ts:830
↓ 1 callersMethodhandleNumber
* Nothing but a number, potentially with a modifier, left - handle that * * @param conf Current part, expected to be a number, as a string *
src/pattern.ts:389
↓ 1 callersMethodhandleRange
* Take care of ranges (e.g. 1-20) * * @param conf - Current part, expected to be a string like 1-20, can contain L for last * @param type - O
src/pattern.ts:639
↓ 1 callersMethodhandleRangeWithStepping
* Take care of ranges with stepping (e.g. 3-23/5) * * @param conf Current part, expected to be a string like 3-23/5 * @param type One of "sec
src/pattern.ts:566
↓ 1 callersMethodhandleStepping
* Handle stepping (e.g. * / 14) * * @param conf Current part, expected to be a string like * /20 (without the space) * @param type One of "se
src/pattern.ts:677
↓ 1 callersMethodhourPhrase
"of hour 0-6"
src/describe.ts:55
↓ 1 callersMethodifAlso
"(if it is also Friday)", for day-of-month AND day-of-week
src/describe.ts:77
↓ 1 callersMethodifAlsoOneOf
"(if it is also one of: ...)", for day-of-month AND several day-of-week descriptions
src/describe.ts:79
↓ 1 callersMethodincrement
* Increment to next run time * * @param pattern The pattern used to increment the current date. * @param options Cron options used for increm
src/date.ts:715
↓ 1 callersFunctionisCronCallback
(v: unknown)
src/utils.ts:21
↓ 1 callersMethodisNthWeekdayOfMonth
* Check if the given date is the nth occurrence of a weekday in its month. * * @param year The year. * @param month The month (0 for January,
src/date.ts:227
↓ 1 callersMethodisStopped
* Indicates whether or not the cron job is permanently stopped * * @returns Running or not
src/croner.ts:465
↓ 1 callersFunctioniso
(dates: Date[])
test/interval-dst.test.ts:9
↓ 1 callersFunctioniso
(dates: Date[])
test/dst-croner-rust.test.ts:27
↓ 1 callersFunctioniso
(dates: Date[])
test/fixed-time-rule.test.ts:11
↓ 1 callersMethodlastDayOfWeekOfMonth
"the last Friday of the month" (5L)
src/describe.ts:72
↓ 1 callersFunctionlocal
(d: Date)
test/dst-croner-rust.test.ts:51
↓ 1 callersMethodminutePastEveryHourPhrase
"minute 5 past every hour"
src/describe.ts:53
↓ 1 callersMethodminutePhrase
"minute 2, 4, and 6"
src/describe.ts:51
↓ 1 callersFunctionnames
(test: (v: number) => boolean)
src/describe.ts:326
↓ 1 callersFunctionnext
(pattern: string, n: number, from: string)
test/strict-numbers.test.ts:75
↓ 1 callersFunctionnoWildcard
(pattern: string)
test/fixed-time-rule.test.ts:18
↓ 1 callersMethodnthDayOfWeekOfMonth
"the 3rd Tuesday of the month" (2#3)
src/describe.ts:74
↓ 1 callersFunctionoffsetAt
(ms: number)
src/helpers/timezone.ts:201
↓ 1 callersMethodonPhrase
"on Monday"
src/describe.ts:44
↓ 1 callersFunctionpad
(n: number)
src/describe.ts:94
↓ 1 callersFunctionparseISOLocal
* Helper function that takes an ISO8601 local date time string and creates a TimePoint. * Throws on failure. Throws on invalid date or time. * * @p
src/helpers/timezone.ts:65
↓ 1 callersMethodpartToArray
* Convert current part (seconds/minutes etc) to an array of 1 or 0 depending on if the part is about to trigger a run or not.
src/pattern.ts:328
↓ 1 callersMethodpastHourPhrase
"hour 0 and 12", used by everyPastPhrase
src/describe.ts:59
↓ 1 callersMethodpause
* Pause execution * * @returns Wether pause was successful
src/croner.ts:537
↓ 1 callersMethodpeek
* Returns the next scheduled date without advancing the cursor. * * @returns The next scheduled date, or null if the schedule is exhausted.
src/croner.ts:1026
↓ 1 callersFunctionprevious
(pattern: string, n: number, from: string)
test/strict-numbers.test.ts:78
↓ 1 callersMethodpreviousRun
* Return previous run start time * * @returns Previous run time
src/croner.ts:492
↓ 1 callersMethodrecurse
* Increment to next run time recursively. * * This function traverses the date components (year, month, day, hour, minute, second) * to find
src/date.ts:582
↓ 1 callersMethodrecurseBackward
* Find previous match by recursively checking pattern parts in reverse. * * This is the backward equivalent of the recurse() method. It searches
src/date.ts:795
↓ 1 callersMethodrecurseBackwardStep
* One step of recurseBackward(). Returns the level to continue at, or the result. * * @private
src/date.ts:816
↓ 1 callersMethodrecurseStep
* One step of recurse(). Returns the level to continue at, or the result. * * @private
src/date.ts:603
↓ 1 callersMethodreplaceAlpha
* Replace alpha names (day/month) with numeric values using a mapping. A name has to stand * alone, or SUN6 would be read as 6 and JANFEB as 12.
src/pattern.ts:745
↓ 1 callersMethodresume
* Resume execution * * @returns Wether resume was successful
src/croner.ts:548
↓ 1 callersFunctionrunOnFakeClock
* Runs a scheduled job on a fake clock, and returns when each run fired
test/interval-dst.test.ts:81
↓ 1 callersFunctionrunOnFakeClock
* Runs a scheduled job on a fake clock, and returns when each run fired
test/dst-croner-rust.test.ts:143
↓ 1 callersFunctionruns
(pattern: string, n: number)
test/alternative-weekdays.test.ts:315
↓ 1 callersFunctionruns
(pattern: string, alternativeWeekdays = false)
test/strict-names.test.ts:55
↓ 1 callersFunctionruns
(pattern: string, n = 2)
test/strict-numbers.test.ts:49
↓ 1 callersFunctionruns
(pattern: string)
test/ocps-1.0.test.ts:172
↓ 1 callersMethodsecondPhrase
"second 10-20"
src/describe.ts:49
↓ 1 callersMethodsetNthWeekdayOfMonth
* Handle the nth weekday of the month logic using hash sign (e.g. FRI#2 for the second Friday of the month) * * @param index Weekday, example: 5
src/pattern.ts:850
↓ 1 callersMethodthrowAtIllegalCharacters
* After converting JAN-DEC, SUN-SAT only 0-9 * , / - are allowed, throw if anything else pops up * @throws On error
src/pattern.ts:368
↓ 1 callersMethodtimeOfDay
Formats a time of day, "14:00" or "14:00:30". Override for a 12-hour clock.
src/describe.ts:33
↓ 1 callersFunctiontimePointsMatch
* Helper function to check if two TimePoints represent the same local time * * @param tp1 - First TimePoint * @param tp2 - Second TimePoint * @ret
src/helpers/timezone.ts:40
↓ 1 callersFunctiontoWholeSecond
* Runs are on whole seconds, so a time between two seconds counts as the next second
src/options.ts:277
↓ 1 callersFunctionunrefTimer
(timer: NodeJS.Timeout | number)
src/utils.ts:32
↓ 1 callersFunctionutcDate
(year: number, month: number, day: number)
test/early-years.test.ts:5
↓ 1 callersMethodweekdayNearestDay
"the weekday nearest day 15" (15W)
src/describe.ts:70
↓ 1 callersMethodyearPhrase
"year 2025"
src/describe.ts:61
Method[Symbol.iterator]
* Implements the ECMAScript Iterable protocol, enabling `for...of` and destructuring.
src/croner.ts:1052
Method_startAt
* The startAt and stopAt options, which CronOptionsHandler has made CronDates
src/croner.ts:166
Method_stopAt
()
src/croner.ts:169
Functionconstruct
(target, args, newTarget)
test/dst-overlap-precision.test.ts:95
Functionconstruct
(target, args, newTarget)
test/interval-dst.test.ts:89
Functionconstruct
(target, args, newTarget)
test/dst-croner-rust.test.ts:156
Functionconstruct
(target, args, newTarget)
test/clockstep.test.ts:12
Functionconstruct
(target, args, newTarget)
test/day-offset.test.ts:275
Functionconstruct
(target, args, newTarget)
test/croner.test.ts:1203
Functionconstruct
(target, args, newTarget)
test/iterator.test.ts:268
Methodconstructor
( pattern: string | Date, fnOrOptions1?: CronOptions<T> | CronCallback<T>, fnOrOptions2?: CronOpti
src/croner.ts:216
Methodconstructor
* @param cron - The Cron instance to iterate over * @param startAt - Optional starting date for iteration. Defaults to current time if omitted.
src/croner.ts:993
Methodconstructor
(d?: CronDate<T> | Date | string | null, tz?: string | number)
src/date.ts:108
Methodconstructor
( pattern: string, timezone?: string, options?: { mode?: CronMode; alternativeWeekdays
src/pattern.ts:77
Functionget
(target, property, receiver)
test/dst-overlap-precision.test.ts:98
Functionget
(target, property, receiver)
test/interval-dst.test.ts:92
Functionget
(target, property, receiver)
test/dst-croner-rust.test.ts:159
Functionget
(target, property, receiver)
test/clockstep.test.ts:15
Functionget
(target, property, receiver)
test/day-offset.test.ts:278
Functionget
(target, property, receiver)
test/croner.test.ts:1206
Functionget
(target, property, receiver)
test/iterator.test.ts:271
MethodisAhead
(date: Date)
src/croner.ts:914
MethodisFixed
(part: string, values: number[])
src/pattern.ts:318
Functionrestore
()
test/clockstep.test.ts:37
FunctionsetNow
(time: number)
test/clockstep.test.ts:34
Methodstep
(date: CronDate<T>, hasPrevious: boolean)
src/croner.ts:888
Functionthen
(resolve: () => void, reject: (reason: unknown) => void)
test/async-catch.test.ts:29
← previous101–185 of 185, ranked by callers