Expand description
Implementation of US stock exchange calendar with full and half-day holidays. code borrowed heavily from https://github.com/xemwebe/cal-calc
Structs
- Calendar for arbitrary complex holiday rules
- Calendar specific to US stock exchanges
Enums
- Do the half-day holiday check before or after the target date
- Types of days when US stocks exchanges are closed
- Specifies the nth week of a month
Functions
- Returns ending accounting period (end of month, end of year)
- Returns optional NaiveDate based on HalfCheck vs weekday comaprision result
- Returns true if the specified year is a leap year (i.e. Feb 29th exists for this year)
- Calculate the last day of a given month in a given year