schedule
schedule copied to clipboard
Support for every().weekday()?
This would be a handy addition.
why don't you use every().day
instead?
Just aiming for Monday-Friday
This also brings with the issue that different cultures have different weekdays, so hopefully that could be implemented in some way as well.
@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 ?
@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.
@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 !!
Ignore non-western culture in favor of simplicity?
Yes.
You could check the DoW in the job and run it daily...
I would really love this feature.
It seems like this Pull Request would also suit my needs. https://github.com/dbader/schedule/pull/238
Is custom calendar still in the scope?