The purpose of this project is to give an interface to work with holidays using date-fns
Inspired from date-fns-holiday-us
yarn add date-fns-holiday-my date-fns
or with npm:
npm i date-fns-holiday-my date-fns
Ƭ Holiday: "christmas" | "easter" | "halloween" | "valentinesDay" | "mothersDay" | "columbusDay" | "independenceDay" | "presidentsDay" | "laborDay" | "veteransDay" | "thanksgiving" | "newYearsEve" | "martinLutherKingJrDay" | "newYearsDay" | "fathersDay" | "memorialDay" | "goodFriday" | "juneteenth"
Defined in index.ts:13
Ƭ Holidays: object
Defined in index.ts:139
▸ getChristmas(year
: number): Date
Defined in index.ts:99
Parameters:
Name | Type |
---|---|
year |
number |
Returns: Date
▸ getHolidays(year
: number): Holidays
Defined in index.ts:147
Parameters:
Name | Type |
---|---|
year |
number |
Returns: Holidays
▸ getLaborDay(year
: number): Date
Defined in index.ts:103
Parameters:
Name | Type |
---|---|
year |
number |
Returns: Date
▸ getNewYearsDay(year
: number): Date
Defined in index.ts:123
Parameters:
Name | Type |
---|---|
year |
number |
Returns: Date