commenthol / date-holidays-parser

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

set Day Off #8

Closed Fancap closed 5 years ago

Fancap commented 5 years ago

Hi there,

hd.getDayOff() returns undefined (country 'CH', 'GE'))

setDayOff() does not exist, and can't find any documentation related. Can you help me ?

Thanks

commenthol commented 5 years ago

the tag "dayoff" is missing in CH.yaml - sorry for that Documentation is here: https://github.com/commenthol/date-holidays/blob/master/docs/specification.md#structure-of-holidaysyaml

    dayoff: {String}    # name of weekday which is a default day off (friday|saturday|sunday|...)
Fancap commented 5 years ago

thanks! found a workaround :)