Constructors
constructor
Defined in ql/time/calendar.ts:32
Properties
Protected _impl
Defined in ql/time/calendar.ts:285
Private _isDisposed
_isDisposed: boolean
Defined in ql/time/calendar.ts:286
Accessors
isDisposed
get isDisposed( ) : boolean
Defined in ql/time/calendar.ts:274
Returns boolean
Methods
addHoliday
addHoliday( d: Date ) : void
Defined in ql/time/calendar.ts:81
Parameters
Returns void
adjust
Defined in ql/time/calendar.ts:107
Parameters
Returns Date
advance1
Defined in ql/time/calendar.ts:162
Parameters
d: Date
Default value c: BusinessDayConvention = BusinessDayConvention.Following
Default value endOfMonth: boolean = false
Returns Date
advance2
Defined in ql/time/calendar.ts:206
Parameters
d: Date
Default value c: BusinessDayConvention = BusinessDayConvention.Following
Default value endOfMonth: boolean = false
Returns Date
businessDaysBetween
businessDaysBetween( from: Date , to: Date , includeFirst?: boolean , includeLast?: boolean ) : Day
Defined in ql/time/calendar.ts:213
Parameters
from: Date
to: Date
Default value includeFirst: boolean = true
Default value includeLast: boolean = false
Returns Day
dispose
Defined in ql/time/calendar.ts:278
Returns void
empty
Defined in ql/time/calendar.ts:38
Returns boolean
endOfMonth
endOfMonth( d: Date ) : Date
Defined in ql/time/calendar.ts:77
Parameters
Returns Date
isBusinessDay
isBusinessDay( d: Date ) : boolean
Defined in ql/time/calendar.ts:49
Parameters
Returns boolean
isEndOfMonth
isEndOfMonth( d: Date ) : boolean
Defined in ql/time/calendar.ts:73
Parameters
Returns boolean
isHoliday
isHoliday( d: Date ) : boolean
Defined in ql/time/calendar.ts:62
Parameters
Returns boolean
isWeekend
Defined in ql/time/calendar.ts:66
Parameters
Returns boolean
name
Defined in ql/time/calendar.ts:42
Returns string
removeHoliday
removeHoliday( d: Date ) : void
Defined in ql/time/calendar.ts:94
Parameters
Returns void
Static equal
Defined in ql/time/calendar.ts:290
Parameters
Returns boolean
Static holidayList
holidayList( calendar: Calendar , from: Date , to: Date , includeWeekEnds?: boolean ) : Date []
Defined in ql/time/calendar.ts:256
Parameters
from: Date
to: Date
Default value includeWeekEnds: boolean = false
Returns Date []
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
calendar class
This class provides methods for determining whether a date is a business day or a holiday for a given market, and for incrementing/decrementing a date of a given number of business days.
The Bridge pattern is used to provide the base behavior of the calendar, namely, to determine whether a date is a business day.
A calendar should be defined for specific exchange holiday schedule or for general country holiday schedule. Legacy city holiday schedule calendars will be moved to the exchange/country convention.
the methods for adding and removing holidays are tested by inspecting the calendar before and after their invocation.