Live data from Hacker News

Show HN: Convert English to Cron Expressions

cronprompt.com

1–10 of 61 posts

Re: Show HN: Convert English to Cron Expressions

#5
Really cool project, but I may have found a mistake. Typing "21st night september" returns “At 12:00 AM, on day 21 of the month, only in September”. And I would expect it to be maybe 9-11:59pm, not midnight that morning. But maybe 'night' is just not very well defined?

Re: Show HN: Convert English to Cron Expressions

#9
post #8

A different take on the same idea: Cron tab Guru [1]. I use this tool all the time. I'd love a CLI version of this tool, where I pass in the cron expression and it tells me the english translation. [1] https://crontab.guru/

Cron tab guru was the inspiration! Was curious if a plain english version was possible.

Check out Cronstrue[1], its what I use for going from cron expression to english.

[1] https://github.com/bradymholt/cRonstrue

Re: Show HN: Convert English to Cron Expressions

#10
post #6

This is pretty great. It would be nice if it were able to handle exceptions, for example: "The second Sunday of every month except in December"

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 *

Post reply on HN