remove a holiday from a calendar
a string containing a date specification in a format recognized by ParseDate or a Date data structure
a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor
The RemoveHoliday updates a given calendar by making a given date a regular business day.
The parameter date must be a date specified in any of the formats recognized by the ParseDate command.
The parameter calendar must be either a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor.
Create a sample calendar and modify it.
calendar ≔ Calendar⁡Simple
calendar ≔ moduleend module
Holidays ≔ January 22, 2004,January 23, 2004,January 24, 2004,January 25, 2004,January 26, 2004,January 27, 2004,January 28, 2004
Holidays≔January 22, 2004,January 23, 2004,January 24, 2004,January 25, 2004,January 26, 2004,January 27, 2004,January 28, 2004
IsHoliday⁡January 23, 2004,calendar
AdjustDate⁡January 23, 2004,calendar,convention=Following,output=formatted
January 29, 2004
AdjustDate⁡January 23, 2004,calendar,convention=Preceding,output=formatted
January 21, 2004
Now remove January 23, 2004 from this calendar.
RemoveHoliday⁡January 23, 2004,calendar
January 23, 2004
The Finance[RemoveHoliday] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Download Help Document