Finance
JoinHolidays
construct new calendar by joining holidays from the given two calendars
Calling Sequence
Parameters
Description
Examples
Compatibility
JoinHolidays(calendar1, calendar2)
calendar1
-
a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor
calendar2
The JoinHolidays command creates a new calendar obtained by joining holidays from the given two calendars. Any dates that are holidays in either of the given two calendars become holidays in the new calendar.
with⁡Finance:
Calendar1≔Calendar⁡Toronto:
Calendar2≔Calendar⁡Null
Calendar2 ≔ moduleend module
AddHoliday⁡Calendar2,January 4, 2006:
IsHoliday⁡January 3, 2006,Calendar1
false
IsBusinessDay⁡January 3, 2006,Calendar1
true
IsHoliday⁡January 1, 2006,Calendar1
IsBusinessDay⁡January 1, 2006,Calendar1
Calendar3≔JoinHolidays⁡Calendar1,Calendar2:
IsHoliday⁡January 1, 2006,Calendar3
IsHoliday⁡January 4, 2006,Calendar3
RemoveHoliday⁡January 1, 2006,Calendar3:
The Finance[JoinHolidays] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[AddHoliday]
Finance[AdjustDate]
Finance[AdvanceDate]
Finance[Calendar]
Finance[Calendars]
Finance[IsBusinessDay]
Finance[IsHoliday]
Finance[JoinBusinessDays]
Finance[RemoveHoliday]
Download Help Document