Overview of the Calendar Package
List of Calendar Package Commands
Calendar Numbering Conventions
Calendar:-command( arguments )
command( arguments )
The Calendar package provides Maple commands for performing calculations involving dates and times, via Date and Time objects.
The following is a list of the commands provided by the Calendar package.
perform calendar arithmetic on individual date fields
compute the time between two dates
compute the day of the week for a given date
compute the day of the year for a given date
return the number of days in a given month
return the number of days in a given year
format a date as a string
return the local time zone of the host computer
determine whether a given date falls during daylight saving time
check whether a year is a leap year
check whether a day falls on a weekend
compute the Julian day number of a date
compute the modified Julian day number of a date
parse a date from a string
return a Date object for the current day
There are two commonly used year-naming conventions, the Dionysian convention and the Cassini convention. The Calendar package uses the Cassini convention for numerical input and output of years. The year 1 BCE is year 0 in the Cassini convention, and years prior to that are given negative numbers. Note that this means year 47 BCE is year -46 in the Cassini convention.
The Cassini convention is universally used in scientific calculations today. For more information about the Cassini convention and other year numbering systems, see Details of the Calendar Package. This page also includes information about the historical accuracy of dates.
The Calendar package 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)