https://kotlinlang.org logo
#getting-started
Title
# getting-started
e

elect

09/28/2021, 11:51 AM
is there any jvm util (hopefully in kotlin) for dealing/expressing POSIX cron syntax nicely in Kotlin?
j

Joffrey

09/28/2021, 11:52 AM
There's at least this one: https://github.com/jmrozanec/cron-utils. It's Java, so the API will not be as good as it could, but it does the job if you don't find anything else
e

elect

09/28/2021, 12:48 PM
uhm, too much verbose, I think I'm gonna do in my own Thanks anyway 🙂
m

Matteo Mirk

09/30/2021, 9:22 AM
remember you can always improve an existing API with extension methods and DSL in general, so you could use that lib and adapt its API the way you want, as opposed to writing an utility from scratch
1
e

elect

09/30/2021, 11:40 AM
I went with a small builder class in my lib
nothing standalone
n

nkiesel

10/05/2021, 10:42 PM
both quartz and jobrunr have code for parsing cron expressions. But both are not small
e

elect

10/06/2021, 6:59 AM
I see, thanks