News for hackers. Stuff that matters.
Re:Show HN: Convert English to Cron Expressions by seiferteric on Friday August 05, 2022 @02:01PM (#32359634)
It's erroring out on me but I wanted to try one of my stackoverflow questions from long ago that still gets frequent votes:

Every 15 minutes except at 3AM?

Stackoverflow responses say it can't be done in one line.

Re:Show HN: Convert English to Cron Expressions by encoderer on Friday August 05, 2022 @03:59PM (#32361232)
If you mean to only skip one specific occurrence at 03:00 exactly then, yes, it can’t be done in a single line.
Re:Show HN: Convert English to Cron Expressions by seiferteric on Friday August 05, 2022 @02:05PM (#32359689)
Ah it finally worked: 0-59/15 3 * * *') Is this correct? :)
Re:Show HN: Convert English to Cron Expressions by kc10 on Friday August 05, 2022 @04:47PM (#32361796)
this only runs between 3am and 4am.

I can't think of a way to get it in one line. Probably easiest is to split into two jobs.

*/15 1,2,4-23 * * * - this runs every 15 mins except between 3am and 4am

15,30,45 3 * * * - this should cover the delta

Re:Show HN: Convert English to Cron Expressions by jacobpedd on Friday August 05, 2022 @02:20PM (#32359866)
There is a trailing ') from a bug that I just fixed. I don't think that's correct. Tricky prompt!