Modules | |
Calendars | |
Day counters | |
Classes | |
class | DateInterval |
Date interval described by a number of a given time unit. More... | |
class | PricingPeriod |
Time pricingperiod described by a number of a given time unit. More... | |
class | Calendar |
calendar class More... | |
class | Calendar::Impl |
abstract base class for calendar implementations More... | |
class | Calendar::WesternImpl |
partial calendar implementation More... | |
class | Calendar::OrthodoxImpl |
partial calendar implementation More... | |
struct | DateGeneration |
Date-generation rule. More... | |
class | DayCounter |
day counter class More... | |
class | Period |
class | Schedule |
Payment schedule. More... | |
Enumerations | |
enum | BusinessDayConvention { Following, ModifiedFollowing, Preceding, ModifiedPreceding, Unadjusted, HalfMonthModifiedFollowing } |
Business Day conventions. More... | |
enum | Rule { Backward, Forward, Zero, ThirdWednesday, Twentieth, TwentiethIMM, OldCDS, CDS } |
enum | Frequency { NoFrequency = -1, Once = 0, Annual = 1, Semiannual = 2, EveryFourthMonth = 3, Quarterly = 4, Bimonthly = 6, Monthly = 12, EveryFourthWeek = 13, Biweekly = 26, Weekly = 52, Daily = 365, OtherFrequency = 999 } |
Frequency of events. More... | |
enum | TimeUnit { Days, Weeks, Months, Years, Hours, Minutes, Seconds, Milliseconds } |
Units used to describe time periods. More... | |
enum | Weekday { Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = 4, Thursday = 5, Friday = 6, Saturday = 7, Sun = 1, Mon = 2, Tue = 3, Wed = 4, Thu = 5, Fri = 6, Sat = 7 } |
The concrete class QuantLib::Date
implements the concept of date. Its functionalities include:
enum BusinessDayConvention |
Business Day conventions.
These conventions specify the algorithm used to adjust a date in case it is not a valid business day.
enum Rule |
Enumerator | |
---|---|
Backward |
Backward from termination date to effective date. |
Forward |
Forward from effective date to termination date. |
Zero |
No intermediate dates between effective date and termination date. |
ThirdWednesday |
All dates but effective date and termination date are taken to be on the third wednesday of their month (with forward calculation.) |
Twentieth |
All dates but the effective date are taken to be the twentieth of their month (used for CDS schedules in emerging markets.) The termination date is also modified. |
TwentiethIMM |
All dates but the effective date are taken to be the twentieth of an IMM month (used for CDS schedules.) The termination date is also modified. |
OldCDS |
Same as TwentiethIMM with unrestricted date ends and log/short stub coupon period (old CDS convention). |
CDS |
Credit derivatives standard rule since 'Big Bang' changes in 2009. |
enum Frequency |
Frequency of events.
enum TimeUnit |
Units used to describe time periods.
enum Weekday |
Day's serial number MOD 7; WEEKDAY Excel function is the same except for Sunday = 7.