Hacker News new | ask | show | jobs
by seiferteric 1411 days ago
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.

2 comments

If you mean to only skip one specific occurrence at 03:00 exactly then, yes, it can’t be done in a single line.
Ah it finally worked: 0-59/15 3 * * *') Is this correct? :)
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

There is a trailing ') from a bug that I just fixed. I don't think that's correct. Tricky prompt!