Re:Show HN: Convert English to Cron Expressions
by jacobpedd on Friday August 05, 2022 @01:43PM
(#32359381)
I added your example to the training data and it seems like it helped it learn exceptions. Here's the result for your prompt:
0 0 8-14 1-4,6-12 *
Re:Show HN: Convert English to Cron Expressions
by cuu508 on Friday August 05, 2022 @02:09PM
(#32359731)
But that expression doesn't seem to make sense, no?
IMO it should generate something like: "0 0 * 1-11 SUN#2"
The "#2" bit is not standard cron syntax though and will not work correctly in e.g. Debian cron.
"The second Sunday of every month except in December"