IsHoliday - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

Finance

  

IsHoliday

  

check if given date is a holiday

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

IsHoliday(date, calendar)

Parameters

date

-

a string containing a date specification in a format recognized by Finance[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 IsHoliday command returns true if the given date is a holiday in the given calendar.

• 

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:

IsHolidayJanuary 3, 2006,Toronto

false

(1)

IsBusinessDayJanuary 3, 2006,Toronto

true

(2)

Compatibility

• 

The Finance[IsHoliday] 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[IsEndOfMonth]

Finance[JoinBusinessDays]

Finance[JoinHolidays]

Finance[RemoveHoliday]

 


Download Help Document