JoinBusinessDays - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Finance

  

JoinBusinessDays

  

construct new calendar by joining business days from the given two calendars

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

JoinBusinessDays(calendar1, calendar2)

Parameters

calendar1

-

a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor

calendar2

-

a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor

Description

• 

The JoinBusinessDays command creates a new calendar obtained by joining business days from the given two calendars. Any dates that are business days in either of the given two calendars become business days in the new calendar.

Examples

withFinance:

Calendar1CalendarToronto:

Calendar2CalendarSimple

Calendar2moduleend module

(1)

AddHolidayCalendar2,January 4, 2006:

IsHolidayJanuary 3, 2006,Calendar1

false

(2)

IsBusinessDayJanuary 3, 2006,Calendar1

true

(3)

IsHolidayJanuary 1, 2006,Calendar1

true

(4)

IsBusinessDayJanuary 1, 2006,Calendar1

false

(5)

Calendar3JoinBusinessDaysCalendar1,Calendar2:

IsHolidayJanuary 1, 2006,Calendar3

true

(6)

IsHolidayJanuary 4, 2006,Calendar3

false

(7)

RemoveHolidayJanuary 1, 2006,Calendar3:

IsHolidayJanuary 1, 2006,Calendar3

false

(8)

Compatibility

• 

The Finance[JoinBusinessDays] 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[JoinHolidays]

Finance[RemoveHoliday]