Finance - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Finance : Date Arithmetic : Finance/RemoveHoliday

Finance

  

RemoveHoliday

  

remove a holiday from a calendar

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

RemoveHoliday(calendar, date)

Parameters

date

-

a string containing a date specification in a format recognized by ParseDate or a date data structure

calendar

-

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

Description

• 

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.

Examples

withFinance:

Create a sample calendar and modify it.

calendarCalendarSimple

calendarmoduleend module

(1)

HolidaysJanuary 22, 2004,January 23, 2004,January 24, 2004,January 25, 2004,January 26, 2004,January 27, 2004,January 28, 2004

HolidaysJanuary 22, 2004,January 23, 2004,January 24, 2004,January 25, 2004,January 26, 2004,January 27, 2004,January 28, 2004

(2)

AddHolidaycalendar,Holidays

IsHolidayJanuary 23, 2004,calendar

true

(3)

AdjustDateJanuary 23, 2004,calendar,convention=Following,output=formatted

January 29, 2004

(4)

AdjustDateJanuary 23, 2004,calendar,convention=Preceding,output=formatted

January 21, 2004

(5)

Now remove January 23, 2004 from this calendar.

RemoveHolidayJanuary 23, 2004,calendar

IsHolidayJanuary 23, 2004,calendar

false

(6)

AdjustDateJanuary 23, 2004,calendar,convention=Following,output=formatted

January 23, 2004

(7)

AdjustDateJanuary 23, 2004,calendar,convention=Preceding,output=formatted

January 23, 2004

(8)

Compatibility

• 

The Finance[RemoveHoliday] 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[Calendars]

Finance[IsBusinessDay]

Finance[IsEndOfMonth]

Finance[IsHoliday]

Finance[JoinBusinessDays]

Finance[JoinHolidays]

Finance[RemoveHoliday]