Module Daml.Finance.Util.Date.Calendar

Functions

merge

: [HolidayCalendarData] -> HolidayCalendarData

Merge multiple holiday calendars into a single one. id\s are concatenated by ,.

isHoliday

: HolidayCalendarData -> Date -> Bool

Check if Date is a holiday.

isBusinessDay

: HolidayCalendarData -> Date -> Bool

Check if Date is a business day.

nextBusinessDay

: HolidayCalendarData -> Date -> Date

Get next business day.

previousBusinessDay

: HolidayCalendarData -> Date -> Date

Get previous business day.

nextOrSameBusinessDay

: HolidayCalendarData -> Date -> Date

Get next or same business day.

previousOrSameBusinessDay

: HolidayCalendarData -> Date -> Date

Get previous or same business day.

nextSameOrLastInMonthBusinessDay

: HolidayCalendarData -> Date -> Date

Get next or same business day if before end of month. Otherwise get last business day in month.

previousSameOrFirstInMonthBusinessDay

: HolidayCalendarData -> Date -> Date

Get previous or same business day if before end of month. Otherwise get first business day in month.

addBusinessDays

: HolidayCalendarData -> Int -> Date -> Date

Add business days to a Date.

adjustDate

: HolidayCalendarData -> BusinessDayConventionEnum -> Date -> Date

Adjust date according to the given business day convention.