commenthol / date-holidays-parser

parser for worldwide holidays
ISC License
46 stars 22 forks source link

Feat: if is holiday rule #42

Closed commenthol closed 2 years ago

commenthol commented 2 years ago

This PR adds a new rule which moves a holiday in case that day already observes a different holiday.

Change to different weekday if date already falls on a holiday

Rule: <rule> if is (<type>)? holiday then (<count>)? (next|previous) <weekday>

Rule: <rule> if is (<type>)? holiday then (<count>)? (next|previous) day (omit <weekdays>)?

Where:

Examples: