Hacker News new | ask | show | jobs
by jacobpedd 1414 days ago
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 *

1 comments

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.

You’re totally right. Missed the the second Sunday part.

Wasn’t aware of the SUN#2 syntax. I find it interesting it used 8,14 as its best approximation. You can see it trying it’s best.