determine whether a date falls on a weekend
IsWeekend( d )
IsWeekend( year, month, day )
Date; the date
integer; the year
posint; the month of the year
posint; the day of the month
The IsWeekend( d ) command determines whether the Date object d specifies a date that falls on a weekend. The command may also be used in the form IsWeekend( year, month, day ), with the year, month and day fields individually specified.
In the POSIX locale, a date falls on a weekend if the day of the week is either Saturday (6) or Sunday (1).
The Calendar[IsWeekend] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
Download Help Document
What kind of issue would you like to report? (Optional)