hquantlib-time-0.0.4.1: HQuantLib Time is a business calendar functions extracted from HQuantLib

Safe HaskellSafe
LanguageHaskell2010

QuantLib.Time.Date

Synopsis

Documentation

class Holiday m where Source #

Defines a holidays for given calendar. Corresponds to calendar class in QuantLib

Minimal complete definition

isHoliday

type Date = Day Source #

Date

data WeekDay Source #

Week days

Instances
Enum WeekDay Source # 
Instance details

Defined in QuantLib.Time.Date

Eq WeekDay Source # 
Instance details

Defined in QuantLib.Time.Date

Methods

(==) :: WeekDay -> WeekDay -> Bool #

(/=) :: WeekDay -> WeekDay -> Bool #

Show WeekDay Source # 
Instance details

Defined in QuantLib.Time.Date

getWeekDay :: Date -> WeekDay Source #

Gets a week day

getDaysBetween :: (Day, Day) -> [Day] Source #

Generate a list of all dates inbetween

isWeekEnd :: Date -> Bool Source #

Checks if the day is a weekend, i.e. Saturday or Sunday

getNextBusinessDay :: Holiday a => a -> Date -> Date Source #

Gets the next working day