Sometimes the calendar governing a financial contract is defined by multiple single locales. These joint calendars are represented by the JointCalendar class.

JointCalendar(calendars, rule = all)

Arguments

calendars

a list of at least one Calendar() objects

rule

either all or any corresponding to a date being good if it is good in all or any of the calendars supplied.

Value

an object of class JointCalendar when using JointCalendar()

See also

Other calendar classes: Calendar

Examples

JointCalendar(list(AUSYCalendar(), AUMECalendar()), all)
#> <JointCalendar> AUSY, AUME #> TZ: Australia/Sydney, Australia/Melbourne #> Join rule: all
JointCalendar(list(AUSYCalendar(), AUMECalendar()), any)
#> <JointCalendar> AUSY, AUME #> TZ: Australia/Sydney, Australia/Melbourne #> Join rule: any