Overview of the Calendar Package
Calling SequenceDescriptionList of Calendar Package CommandsCalendar Numbering ConventionsCompatibility
<Text-field style="Heading 2" layout="Heading 2" bookmark="usage">Calling Sequence</Text-field>
Calendar:-command( arguments )
command( arguments )
<Text-field style="Heading 2" layout="Heading 2" bookmark="info">Description</Text-field>
The Calendar package provides Maple commands for performing calculations involving dates and times, via Date and Time objects.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk0">List of Calendar Package Commands</Text-field>
The following is a list of the commands provided by the Calendar package.AdjustDateFieldperform calendar arithmetic on individual date fieldsDateDifferencecompute the time between two datesDayOfWeekcompute the day of the week for a given dateDayOfYearcompute the day of the year for a given dateDaysInMonthreturn the number of days in a given monthDaysInYearreturn the number of days in a given yearFormatformat a date as a stringHostTimeZonereturn the local time zone of the host computerIsDaylightSavingTimedetermine whether a given date falls during daylight saving timeIsLeapYearcheck whether a year is a leap yearIsWeekendcheck whether a day falls on a weekendJulianDayNumbercompute the Julian day number of a dateModifiedJulianDayNumbercompute the modified Julian day number of a dateParseparse a date from a stringTodayreturn a Date object for the current day
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk1">Calendar Numbering Conventions</Text-field>
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.
<Text-field style="Heading 2" layout="Heading 2" bookmark="compatibility">Compatibility</Text-field>
The Calendar package was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.See AlsoDateTime