Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/harrisiirak/cron-parser
/ functions
Functions
184 in github.com/harrisiirak/cron-parser
⨍
Functions
184
◇
Types & classes
35
↓ 1 callers
Method
getUTCSeconds
* Returns the UTC seconds. * @returns {number}
src/CronDate.ts:406
↓ 1 callers
Method
isLastDayOfMonth
* Returns true if the day is the last day of the month. * @returns {boolean}
src/CronDate.ts:510
↓ 1 callers
Method
min
()
src/fields/CronHour.ts:14
↓ 1 callers
Function
mulberry32
* Initialize a new PRNG using a given seed * @param {number} seed The seed used to initialize the PRNG * @returns {PRNG} A random number generator
src/utils/random.ts:25
↓ 1 callers
Function
printStats
( oldStats: BenchmarkStats, newStats: BenchmarkStats, expression: string, outputFile: string, iterat
benchmarks/runner.ts:79
↓ 1 callers
Function
printSummary
()
benchmarks/runner.ts:183
↓ 1 callers
Function
runBenchmarks
()
benchmarks/index.ts:6
↓ 1 callers
Function
runPatternBenchmark
()
benchmarks/pattern.ts:5
↓ 1 callers
Method
setDate
* Sets the day. * @param d
src/CronDate.ts:430
↓ 1 callers
Method
setDay
* Sets the day of the week. * @param d
src/CronDate.ts:446
↓ 1 callers
Method
setEndOfDay
* Sets the time to the end of the day (23:59:59.999) in the current timezone.
src/CronDate.ts:341
↓ 1 callers
Method
setFullYear
* Sets the year. * @param y
src/CronDate.ts:438
↓ 1 callers
Method
setMilliseconds
* Sets the milliseconds. * @param s
src/CronDate.ts:486
↓ 1 callers
Method
setMonth
* Sets the month. * @param m
src/CronDate.ts:454
↓ 1 callers
Method
setStartOfDay
* Sets the time to the start of the day (00:00:00.000) in the current timezone.
src/CronDate.ts:334
↓ 1 callers
Method
subtractMonth
* Subtracts one month from the current CronDate. * If the month is 1, it will subtract one year instead.
src/CronDate.ts:160
↓ 1 callers
Method
toJSON
* Returns the date as a JSON string. * @returns {string | null}
src/CronDate.ts:422
↓ 1 callers
Method
toString
* Returns the string representation of the cron expression. * @returns {CronDate} - The next schedule date.
src/CronExpression.ts:365
↓ 1 callers
Function
xfnv1a
* Computes a numeric hash from a given string * @param {string} str A value to hash * @returns {number} A numeric hash computed from the given value
src/utils/random.ts:11
Function
#isWildcardValue
* Determines if the field is a wildcard based on the values. * When options.rawValue is not empty, it checks if the raw value is a wildcard, otherw
src/fields/CronField.ts:256
Method
[Symbol.iterator]
* Returns an iterator for iterating through future CronDate instances * * @name Symbol.iterator * @memberof CronExpression * @returns {Ite
src/CronExpression.ts:575
Function
chars
()
src/fields/CronField.ts:60
Method
chars
()
src/fields/CronDayOfMonth.ts:22
Method
chars
()
src/fields/CronDayOfWeek.ts:22
Method
chars
()
src/fields/CronHour.ts:22
Method
chars
()
src/fields/CronMinute.ts:22
Method
chars
()
src/fields/CronSecond.ts:20
Method
chars
()
src/fields/CronMonth.ts:23
Function
constraints
* Returns the constraints for this field.
src/fields/CronField.ts:75
Function
constructor
* CronField constructor. Initializes the field with the provided values. * @param {number[] | string[]} values - Values for this field * @param
src/fields/CronField.ts:86
Method
constructor
* Creates a new CronExpression instance. * * @param {CronFieldCollection} fields - Cron fields. * @param {CronExpressionOptions} options - Pa
src/CronExpression.ts:49
Method
constructor
* CronFieldCollection constructor. Initializes the cron fields with the provided values. * @param {CronFields} param0 - The cron fields values *
src/CronFieldCollection.ts:141
Method
constructor
* Constructs a new CronDate instance. * @param {CronDate | Date | number | string} [timestamp] - The timestamp to initialize the CronDate with.
src/CronDate.ts:33
Method
constructor
* CronDayOfMonth constructor. Initializes the "day of the month" field with the provided values. * @param {DayOfMonthRange[]} values - Values for t
src/fields/CronDayOfMonth.ts:34
Method
constructor
* CronDayOfTheWeek constructor. Initializes the "day of the week" field with the provided values. * @param {DayOfWeekRange[]} values - Values for t
src/fields/CronDayOfWeek.ts:35
Method
constructor
* CronHour constructor. Initializes the "hour" field with the provided values. * @param {HourRange[]} values - Values for the "hour" field * @pa
src/fields/CronHour.ts:31
Method
constructor
* CronSecond constructor. Initializes the "second" field with the provided values. * @param {SixtyRange[]} values - Values for the "second" field
src/fields/CronMinute.ts:31
Method
constructor
* CronSecond constructor. Initializes the "second" field with the provided values. * @param {SixtyRange[]} values - Values for the "second" field
src/fields/CronSecond.ts:29
Method
constructor
* CronDayOfMonth constructor. Initializes the "day of the month" field with the provided values. * @param {MonthRange[]} values - Values for the "d
src/fields/CronMonth.ts:36
Method
dayOfMonth
* Returns the day of the month field. * @returns {CronDayOfMonth}
src/CronFieldCollection.ts:206
Method
dayOfWeek
* Returns the day of the week field. * @returns {CronDayOfWeek}
src/CronFieldCollection.ts:222
Method
daysInMonth
()
src/fields/CronMonth.ts:27
Method
dstEnd
* Returns daylight savings end time. * @returns {number | null}
src/CronDate.ts:95
Method
dstStart
* Returns daylight savings start time. * @returns {number | null}
src/CronDate.ts:79
Method
fields
* Getter for the cron fields. * * @returns {CronFieldCollection} Cron fields.
src/CronExpression.ts:74
Function
findNearestValue
* Instance helper that operates on this field's numeric `values`. * * @param currentValue - Current value to compare against * @param reverse
src/fields/CronField.ts:206
Function
findNearestValueInList
* Find the next (or previous when `reverse` is true) numeric value in a sorted list. * Returns null if there's no value strictly after/before the c
src/fields/CronField.ts:186
Method
handleResult
(result: number | string | (number | string)[], constraints: CronConstraints)
src/CronExpressionParser.ts:299
Function
hasLastChar
* Indicates whether this field has a "last" character. * @returns {boolean}
src/fields/CronField.ts:136
Function
hasQuestionMarkChar
* Indicates whether this field has a "question mark" character. * @returns {boolean}
src/fields/CronField.ts:144
Method
hour
* Returns the hour field. * @returns {CronHour}
src/CronFieldCollection.ts:198
Function
isWildcard
* Indicates whether this field is a wildcard. * @returns {boolean}
src/fields/CronField.ts:152
Method
mapFn
(_: number, index: number)
src/CronFieldCollection.ts:357
Function
max
()
src/fields/CronField.ts:52
Method
max
()
src/fields/CronDayOfMonth.ts:18
Method
max
()
src/fields/CronDayOfWeek.ts:18
Method
max
()
src/fields/CronMinute.ts:18
Method
max
()
src/fields/CronSecond.ts:17
Method
max
()
src/fields/CronMonth.ts:19
Function
min
()
src/fields/CronField.ts:44
Method
min
()
src/fields/CronDayOfMonth.ts:14
Method
min
()
src/fields/CronDayOfWeek.ts:14
Method
min
()
src/fields/CronMinute.ts:14
Method
min
()
src/fields/CronSecond.ts:14
Method
min
()
src/fields/CronMonth.ts:15
Method
minute
* Returns the minute field. * @returns {CronMinute}
src/CronFieldCollection.ts:190
Method
month
* Returns the month field. * @returns {CronMonth}
src/CronFieldCollection.ts:214
Method
nthDay
* Returns the nth day of the week if specified in the cron expression. * This is used for the '#' character in the cron expression. * @returns {
src/fields/CronDayOfWeek.ts:53
Function
rangeTest
(value: number | string)
src/fields/CronField.ts:234
Method
second
* Returns the second field. * @returns {CronSecond}
src/CronFieldCollection.ts:182
Function
serialize
* Serializes the field to an object. * @returns {SerializedCronField}
src/fields/CronField.ts:218
Function
sorter
* Helper function to sort values in ascending order. * @param {number | string} a - First value to compare * @param {number | string} b - Second
src/fields/CronField.ts:170
Method
stringify
* Returns a string representation of the cron field values. * @param {boolean} includeSeconds - Whether to include seconds in the output * @retu
src/CronFieldCollection.ts:419
Function
validChars
* Returns the regular expression used to validate this field.
src/fields/CronField.ts:68
Method
validChars
()
src/fields/CronDayOfMonth.ts:25
Method
validChars
()
src/fields/CronDayOfWeek.ts:26
Function
validate
* Validates the field values against the allowed range and special characters. * @throws {Error} if validation fails
src/fields/CronField.ts:229
Function
values
* Returns an array of allowed values for this field. * @returns {CronFieldType}
src/fields/CronField.ts:160
Method
values
* Returns an array of allowed values for the "day of the month" field. * @returns {DayOfMonthRange[]}
src/fields/CronDayOfMonth.ts:43
Method
values
* Returns an array of allowed values for the "day of the week" field. * @returns {DayOfWeekRange[]}
src/fields/CronDayOfWeek.ts:44
Method
values
* Returns an array of allowed values for the "hour" field. * @returns {HourRange[]}
src/fields/CronHour.ts:40
Method
values
* Returns an array of allowed values for the "second" field. * @returns {SixtyRange[]}
src/fields/CronMinute.ts:40
Method
values
* Returns an array of allowed values for the "second" field. * @returns {SixtyRange[]}
src/fields/CronSecond.ts:38
Method
values
* Returns an array of allowed values for the "day of the month" field. * @returns {MonthRange[]}
src/fields/CronMonth.ts:45
← previous
101–184 of 184, ranked by callers