hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Time.Calendar

Synopsis

Types

data Calendar Source #

Instances

Instances details
Show Calendar Source # 
Instance details

Defined in QuantLib.Internal.Type

Eq Calendar Source # 
Instance details

Defined in QuantLib.Internal.Type

data CalendarConstructor Source #

data BusinessDayConvention Source #

Constructors

Mutators

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

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

removeHoliday :: Calendar -> Day -> IO () Source #

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

Inspectors

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

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

advance Source #

Arguments

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

endOfMonth

-> IO Day 

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

businessDaysBetween Source #

Arguments

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

includeFirst

-> Bool

includeLast

-> IO Int 

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

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

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

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

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

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

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

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

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

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

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

holidays Source #

Arguments

:: Calendar 
-> Day

from

-> Day

to

-> Bool

includeWeekEnds

-> IO [Day] 

Returns the holidays between two dates.

Orphan instances