Parses the given cron expression into a cron AST using Either as return type.
Parses the given cron expression into a cron AST using Either as return type. This is a short-hand for
Cron.parse(...)
a cron expression
an Either representing the failure or the actual parsed cron AST
val cron = Cron("10-35 2,4,6 * ? * *")
Parses the given cron expression into a cron AST using Either as return type
Parses the given cron expression into a cron AST using Either as return type
a cron expression
an Either representing the failure or the actual parsed cron AST
val cron = Cron.parse("10-35 2,4,6 * ? * *")
Parses the given cron expression into a cron AST using Try as return type
Parses the given cron expression into a cron AST using Try as return type
a cron expression
a Try representing the failure or the actual parsed cron AST
val cron = Cron.tryParse("10-35 2,4,6 * ? * *")
Parses the given cron expression into a cron AST.
Parses the given cron expression into a cron AST. This method will throw an exception in case the given cron expression is invalid
a cron expression
a cron AST
val cron = Cron.unsafeParse("10-35 2,4,6 * ? * *")
Error
in case the cron expression is invalid
The entry point for parsing cron expressions