Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/saffron
/ functions
Functions
204 in github.com/cloudflare/saffron
⨍
Functions
204
◇
Types & classes
53
↓ 25 callers
Function
assert
(cron: &str, expected: &str)
saffron/src/describe/english.rs:427
↓ 18 callers
Function
check_does_contain
(cron: &str, dates: impl IntoIterator<Item = impl AsRef<str>>)
saffron/src/lib.rs:1524
↓ 12 callers
Method
normalize
Normalizes the expression, simplifying it. Normalizations: A range of equal start and end points (i.e. 1-1) is simplified into one value (1) A step o
saffron/src/parse.rs:561
↓ 11 callers
Function
assert
(cron: &str, range: R, times: &[&str])
saffron/src/lib.rs:1909
↓ 11 callers
Method
free
* Frees the underlying wasm memory associated with this object.
saffron-web/pkg/saffron.js:81
↓ 11 callers
Function
status
(code, text)
saffron-worker/worker/worker.js:3
↓ 9 callers
Method
into_iter
(self)
saffron/src/parse.rs:614
↓ 9 callers
Method
iter
Creates an iterator of date times contained in the cron value using the given start and end range bounds. Unbounded start and end values will use the
saffron/src/lib.rs:1072
↓ 9 callers
Function
tail_ors_exprs
Consumes a set of trailing ORS expressions
saffron/src/parse.rs:720
↓ 8 callers
Function
e
(value: u8)
saffron/src/parse.rs:1064
↓ 8 callers
Method
is_star
(&self)
saffron/src/lib.rs:115
↓ 7 callers
Function
display
(f: F)
saffron/src/describe/mod.rs:30
↓ 6 callers
Function
check_does_not_contain
(cron: &str, dates: impl IntoIterator<Item = impl AsRef<str>>)
saffron/src/lib.rs:1541
↓ 4 callers
Method
any
(&self)
saffron/src/lib.rs:930
↓ 4 callers
Function
days_in_month
Returns the number of days in the month, 28-31
saffron/src/lib.rs:26
↓ 4 callers
Method
describe
Returns a formatter to display the cron expression in the provided language # Example ``` use saffron::parse::{CronExpr, English}; let cron: CronExp
saffron/src/parse.rs:670
↓ 4 callers
Method
iter_from
(self, start: DateTime<Utc>)
saffron/src/lib.rs:1025
↓ 4 callers
Method
one_value
(&self)
saffron/src/lib.rs:603
↓ 4 callers
Function
set_panic_hook
()
saffron-worker/src/lib.rs:14
↓ 3 callers
Method
any
(&self)
saffron-web/src/lib.rs:45
↓ 3 callers
Function
apiResponse
(result, success, errors)
saffron-worker/worker/worker.js:23
↓ 3 callers
Function
box_it
(val: T)
saffron-c/src/lib.rs:18
↓ 3 callers
Method
contains_date
(&self, d: Date<Utc>)
saffron/src/lib.rs:154
↓ 3 callers
Method
contains_month
(&self, date: Date<Utc>)
saffron/src/lib.rs:777
↓ 3 callers
Function
expr
A parser that can parse delimited expressions given a parser for that part. This can't parse day of the month or week expressions.
saffron/src/parse.rs:744
↓ 3 callers
Method
find_next
Finds the next (current inclusive) matching date time in the future within the specified date time bound, or none if the search exceeds the bound.
saffron/src/lib.rs:1145
↓ 3 callers
Method
hour
(&'a self, h: OrsExpr<Hour>)
saffron/src/describe/english.rs:90
↓ 3 callers
Method
kind
(&self)
saffron/src/lib.rs:111
↓ 3 callers
Function
map_digit1
()
saffron/src/parse.rs:786
↓ 3 callers
Method
next_from
(&self, date: JsDate)
saffron-web/src/lib.rs:54
↓ 3 callers
Function
next_minute
(dt: DateTime<Utc>)
saffron/src/lib.rs:1454
↓ 3 callers
Method
time
(&self, hour: H, minute: M)
saffron/src/describe/english.rs:162
↓ 2 callers
Method
__wrap
@private
saffron-web/pkg/saffron.js:9
↓ 2 callers
Method
contains_hour
(&self, time: NaiveTime)
saffron/src/lib.rs:459
↓ 2 callers
Function
corsHeaders
()
saffron-worker/worker/worker.js:7
↓ 2 callers
Method
find_next_day
Gets the next matching (current inclusive) day of the month or day of the week that matches the cron expression. The returned matching day is a value
saffron/src/lib.rs:1234
↓ 2 callers
Method
find_next_day_of_month
Gets the next matching (current inclusive) day of the month that matches the cron expression.
saffron/src/lib.rs:1253
↓ 2 callers
Method
find_next_minute
Gets the next minute (current inclusive) matching the cron expression, or none if the current minute / no upcoming minute in the hour matches.
saffron/src/lib.rs:1178
↓ 2 callers
Method
find_next_time
Finds the next matching time, limited inclusive by a optional bound.
saffron/src/lib.rs:1208
↓ 2 callers
Method
find_next_weekday
Gets the next matching (current inclusive) day of the week that matches the cron expression. The returned matching day is a value 0-30.
saffron/src/lib.rs:1314
↓ 2 callers
Method
iter_after
(self, start: DateTime<Utc>)
saffron/src/lib.rs:1049
↓ 2 callers
Method
minute
(&self, h: OrsExpr<Minute>)
saffron/src/describe/english.rs:75
↓ 2 callers
Function
minute_floor
(dt: DateTime<Utc>)
saffron/src/lib.rs:1441
↓ 2 callers
Method
month
(&self, h: OrsExpr<Month>)
saffron/src/describe/english.rs:113
↓ 2 callers
Function
rebox_it
(ptr: *mut T)
saffron-c/src/lib.rs:22
↓ 2 callers
Function
time_bound_for_date
(d: Date<Utc>, end: DateTime<Utc>)
saffron/src/lib.rs:1470
↓ 1 callers
Function
assert_cfg
(cfg: English, cron: &str, expected: &str)
saffron/src/describe/english.rs:419
↓ 1 callers
Method
contains
(&self, dt: DateTime<Utc>)
saffron/src/lib.rs:100
↓ 1 callers
Method
contains
(&self, date: JsDate)
saffron-web/src/lib.rs:49
↓ 1 callers
Function
describe
(cron: &str)
saffron-worker/src/lib.rs:68
↓ 1 callers
Function
dow
(s: &str)
saffron/src/parse.rs:928
↓ 1 callers
Method
errors
(&self)
saffron-worker/src/lib.rs:54
↓ 1 callers
Method
find_next_date
( &self, mut start: Date<Utc>, end: Date<Utc>, )
saffron/src/lib.rs:1403
↓ 1 callers
Method
find_next_hour
Gets the next hour (current inclusive) in the cron expression, or none if the current hour / no upcoming hour in the day matches.
saffron/src/lib.rs:1195
↓ 1 callers
Method
find_next_month
Gets the start of the next matching (current inclusive) month that matches the cron expression.
saffron/src/lib.rs:1391
↓ 1 callers
Method
first_set
(&self)
saffron/src/lib.rs:618
↓ 1 callers
Method
first_set0
(&self)
saffron/src/lib.rs:608
↓ 1 callers
Method
fmt_expr
(&self, expr: &CronExpr, f: &mut Formatter)
saffron/src/describe/mod.rs:15
↓ 1 callers
Function
handleRequest
(request)
saffron-worker/worker/worker.js:53
↓ 1 callers
Method
is_last
(&self)
saffron/src/lib.rs:589
↓ 1 callers
Method
iter
Iterates over all expressions in this set
saffron/src/parse.rs:605
↓ 1 callers
Method
iterAfter
* Returns an iterator of all times starting after the specified date. * @param {Date} date The date to start the iterator after * @returns {Cron
saffron-web/pkg/saffron.js:154
↓ 1 callers
Method
iterFrom
* Returns an iterator of all times starting at the specified date. * @param {Date} date The date to start the iterator from * @returns {CronTime
saffron-web/pkg/saffron.js:144
↓ 1 callers
Function
jsonResponseHeaders
()
saffron-worker/worker/worker.js:16
↓ 1 callers
Method
last
(&self)
saffron/src/lib.rs:134
↓ 1 callers
Function
next
(cron: &str)
saffron-worker/src/lib.rs:174
↓ 1 callers
Method
next
(&mut self)
saffron/src/lib.rs:1499
↓ 1 callers
Method
next
(&mut self)
saffron-web/src/lib.rs:92
↓ 1 callers
Method
nextAfter
* Returns the next matching date starting after the given date. * * @param {Date} date The start date * @returns {Date | undefined} The next
saffron-web/pkg/saffron.js:135
↓ 1 callers
Method
nextFrom
* Returns the next matching date starting from the given date. This includes the date given, * which will have seconds truncated if the minute matc
saffron-web/pkg/saffron.js:124
↓ 1 callers
Method
next_after
(&self, date: JsDate)
saffron-web/src/lib.rs:59
↓ 1 callers
Function
next_month_in_year
(d: Date<Utc>)
saffron/src/lib.rs:1460
↓ 1 callers
Function
next_of_many
(crons: JsArray)
saffron-worker/src/lib.rs:190
↓ 1 callers
Method
nth
(&self)
saffron/src/lib.rs:143
↓ 1 callers
Method
parseAndDescribe
* Parses a cron expression into a cron value and string description. * * @param {string} s The string value to parse * @returns {[Cron, stri
saffron-web/pkg/saffron.js:69
↓ 1 callers
Function
previous_minute
(dt: DateTime<Utc>)
saffron/src/lib.rs:1449
↓ 1 callers
Function
validate
(crons: JsArray)
saffron-worker/src/lib.rs:111
Method
[Symbol.iterator]
* Returns this instance. * @returns {CronTimesIter}
saffron-web/pkg/saffron.js:42
Method
add_ors
(mut pattern: u8, expr: OrsExpr<parse::DayOfWeek>)
saffron/src/lib.rs:188
Function
all
()
saffron/src/parse.rs:1119
Method
any
* Returns whether this cron value will match on any one time. * * If a cron value is used that only matches on a day of the month that's not con
saffron-web/pkg/saffron.js:103
Method
byte_to_weekday
(value: u8)
saffron/src/lib.rs:120
Function
chrono_to_js_date
(date: DateTime<Utc>)
saffron-web/src/lib.rs:7
Function
closest_weekday
()
saffron/src/parse.rs:1654
Function
closest_weekday_with_other_exprs
()
saffron/src/parse.rs:1662
Method
cmp
(&self, other: &Self)
saffron/src/parse.rs:363
Method
compile
(expr: Self::Expr)
saffron/src/lib.rs:86
Function
complex
()
saffron/src/describe/english.rs:499
Method
constructor
* Parses a cron expression into a cron value. * * @param {string} s The string value to parse * @throws If the string is not a valid cron exp
saffron-web/pkg/saffron.js:58
Method
contains
* Returns whether this cron value matches on the specified date. * @param {Date} date The date to check * @returns {boolean} `true` if the cron
saffron-web/pkg/saffron.js:112
Method
cron
Returns the underlying cron value.
saffron/src/lib.rs:1491
Function
cron_benchmark
(c: &mut Criterion)
saffron/benches/cron.rs:3
Function
cron_without_any_yields_none
()
saffron/src/lib.rs:1972
Function
day_of_month
()
saffron/src/describe/english.rs:456
Method
day_of_month
(&self, h: OrsExpr<DayOfMonth>)
saffron/src/describe/english.rs:144
Function
day_of_week
()
saffron/src/describe/english.rs:512
Method
day_of_week
(&self, h: OrsExpr<DayOfWeek>)
saffron/src/describe/english.rs:131
Method
default
()
saffron/src/describe/english.rs:46
Method
description
(&self)
saffron-worker/src/lib.rs:61
Function
dom_expr
(input: &str)
saffron/src/parse.rs:838
next →
1–100 of 204, ranked by callers