The methods of the AbstractBusinessCalendar class are listed below. For a complete list of AbstractBusinessCalendar class members, see the AbstractBusinessCalendar Members topic.
Calculates the number of (integer) days between two (normalized) dates. For example,
if you provide a data 1 Jan 2003 00:01, as the start date and 2 Jan 2003 23:59, as the end
date, then the number of days returned will be 1.
Calculates the number of a certain day of the week which lies between
two dates. For example, if the start date is 1 Jan 2003 and the end date is 31 Dec 2003,
and the day of the week we select is Monday then the method will return 52. This is because
the number of Monday's between the start date 1 Jan 2003, and the end date 31 Dec 2003,
including the end dates is 52.
This method evaluates whether the specified date calendar is or is not a
working day. It is important to be able to distinguish between
working and non-working days because generally it is only on working days that contracts
(such as dividend, coupon payments etc) can be settled.
This method evaluates whether the specified date calendar is a working day
or a holiday (i.e. a non-working day). It is important to be able to distinguish between
working and non-working days because generally it is only on working days that cash flows
can take place, therefore it is only on working days that dividends/coupons can be paid,
and contracts can be settled.
Evaluates whether a given date in a weekday (i.e. one of the following days Monday,
Tuesday, Wednesday, Thursday, Friday) or a weekend day (i.e. one of the following dates
Saturday or Sunday).
The dayOfWeek will take one of the following values:
This methods checks whether the first data given start date is before
or after the second date given end date. It is important to preserve the
order of dates passed to methods and we provide this method to assist in the checking
of the order of dates within your applications.