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
elect
09/30/2021, 11:40 AM
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