HolidayCalendar
Holidays of one country, computed from rules. Build your own (company days off, observances) with the same HolidayRule types, or get a built-in one from PublicHolidays.
Properties
Functions
Link copied to clipboard
fun holidaysIn(year: Int, subdivision: String? = null, language: String? = null): List<PublicHoliday>
Every holiday in year for the whole country plus subdivision (an ISO 3166-2 code such as "DE-BY"), including substitute days, sorted by date and then rule order. Names are English unless language names a language present in the rules' HolidayRule.names.
Link copied to clipboard
fun holidaysOn(date: LocalDate, subdivision: String? = null, language: String? = null): List<PublicHoliday>
Holidays on date (usually zero or one).