WebCab Bonds for .NET v2.01

AbstractBusinessCalendar Members

AbstractBusinessCalendar overview

Public Static Fields

DAYS_IN_A_WEEK The number of days within a week.
MILLISECONDS_IN_A_DAY The number of milliseconds within a day.
MILLISECONDS_IN_A_HOUR The number of milliseconds within an hour.
MILLISECONDS_IN_A_MINUTE The number of milliseconds within a minute.
MILLISECONDS_IN_A_SECOND The number of milliseconds within a second.

Public Instance Properties

Name

Public Instance Methods

daysBetween 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.
daysBetweenAsPercentAtYear
daysOfWeekBetween 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.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
isHoliday 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.
isWorkingDay 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.
nextHoliday Returns the next holiday day after a given date.
nextPaymentDate Returns the index of the element of an array of dates which is the date which is after and closest to a given date.
nextWorkingDay Returns the next working day after a given date.
previousPaymentDate Returns the index of the element of an array of dates which is the date which is before and closest to a given date.
ToString (inherited from Object)Returns a String that represents the current Object.
workingDaysBetween
yearsBetween

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Constructors

AbstractBusinessCalendar Constructor Default constructor. This class is constructed with protected access so that it can be overridden and made public.

Protected Internal Instance Methods

checkDayOfWeek 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:
  • 1 = Calendar.MONDAY
  • 2 = Calendar.TUESDAY
  • 3 = Calendar.WEDNESDAY
  • 4 = Calendar.THURSDAY
  • 5 = Calendar.FRIDAY
  • 6 = Calendar.SATURDAY
  • 7 = Calendar.SUNDAY
checkOrder 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.

See Also

AbstractBusinessCalendar Class | WebCab.BusinessCalendar Namespace