Crate holiday_rs

Crate holiday_rs 

Source
Expand description

holiday-rs: MVP library to get holidays and business-day utils.

  • Countries: FR (France) for v0.1.0
  • Exports: JSON/CSV helpers
  • Utils: next_holiday, is_business_day, business_days_between

Modules§

export

Structs§

Holiday

Functions§

business_days_between
Count business days in [start, end). If start >= end -> 0.
get_holidays
Return the list of holidays for a given year and ISO-like country code (MVP: “FR”).
is_business_day
Returns true if the date is a business day (Mon-Fri and not a holiday for country).
next_holiday
Return the next holiday strictly after date for country.