hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Time.Calendar

Synopsis

Documentation

data CalendarConstructor #

data Calendar #

Instances

Instances details
Show Calendar # 
Instance details

Defined in QuantLib.Internal.Type

Eq Calendar # 
Instance details

Defined in QuantLib.Internal.Type

adjust :: Calendar -> Day -> BusinessDayConvention -> IO Day #

Adjusts a non-business day to the appropriate near business day with respect to the given convention

Advances the given date of the given number of business days and returns the result using business day convention and the EOM flag

advance #

Arguments

:: Calendar 
-> Day 
-> (Int, TimeUnit) 
-> BusinessDayConvention 
-> Bool

endOfMonth

-> IO Day 

Adds a date to the set of holidays for the given calendar.

addHoliday :: Calendar -> Day -> IO () #

Calculates the number of business days between two given dates and returns the result.

businessDaysBetween #

Arguments

:: Calendar 
-> Day 
-> Day 
-> Bool

includeFirst

-> Bool

includeLast

-> IO Int 

endOfMonth :: Calendar -> Day -> IO Day #

last business day of the month to which the given date belongs

Returns true iff the date is a business day for the given market.

isBusinessDay :: Calendar -> Day -> IO Bool #

Returns true iff the date is last business day for the month in given market.

isEndOfMonth :: Calendar -> Day -> IO Bool #

Returns true iff the date is a holiday for the given market.

isHoliday :: Calendar -> Day -> IO Bool #

Returns true iff the weekday is part of the weekend for the given market.

isWeekend :: Calendar -> Weekday -> IO Bool #

Removes a date from the set of holidays for the given calendar.

holidays #

Arguments

:: Calendar 
-> Day

from

-> Day

to

-> Bool

includeWeekEnds

-> IO [Day] 

Returns the holidays between two dates.