schedule icon indicating copy to clipboard operation
schedule copied to clipboard

Support for every().weekday()?

Open chrism2671 opened this issue 8 years ago • 11 comments

This would be a handy addition.

chrism2671 avatar Feb 20 '17 13:02 chrism2671

why don't you use every().day instead?

heisen273 avatar Jun 03 '17 18:06 heisen273

Just aiming for Monday-Friday

chrism2671 avatar Jun 06 '17 09:06 chrism2671

This also brings with the issue that different cultures have different weekdays, so hopefully that could be implemented in some way as well.

furudean avatar Sep 12 '17 07:09 furudean

@chrism2671 @whimzee One of the major factors I use this library is because of its simplicity. Also, shouldn't all such strict implementation logic be outside of the library itself ?

candyfaz avatar Sep 12 '17 08:09 candyfaz

@Fauzan-M What do you suggest? Ignore non-western culture in favor of simplicity? As far as I know there is no easy way to implement this outside of the library.

furudean avatar Sep 12 '17 08:09 furudean

@whimzee It should be build more like a calender-middleware layer sitting outside of scheduler (running every minute!). And all your calendar rules should reside within that middleware layer. Just a suggestion !!

candyfaz avatar Sep 12 '17 08:09 candyfaz

Ignore non-western culture in favor of simplicity?

Yes.

contang0 avatar Feb 02 '18 13:02 contang0

You could check the DoW in the job and run it daily...

jchacks avatar Mar 28 '18 12:03 jchacks

I would really love this feature.

BenjiLewis avatar Nov 05 '18 12:11 BenjiLewis

It seems like this Pull Request would also suit my needs. https://github.com/dbader/schedule/pull/238

BenjiLewis avatar Nov 05 '18 12:11 BenjiLewis

Is custom calendar still in the scope?

gigittygit avatar Aug 31 '23 07:08 gigittygit