Calendar - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Overview of the Calendar Package

 

Calling Sequence

Description

List of Calendar Package Commands

Calendar Numbering Conventions

Compatibility

Calling Sequence

Calendar:-command( arguments )

command( arguments )

Description

• 

The Calendar package provides Maple commands for performing calculations involving dates and times, via Date and Time objects.

List of Calendar Package Commands

• 

The following is a list of the commands provided by the Calendar package.

AdjustDateField

perform calendar arithmetic on individual date fields

DateDifference

compute the time between two dates

DayOfWeek

compute the day of the week for a given date

DayOfYear

compute the day of the year for a given date

DaysInMonth

return the number of days in a given month

DaysInYear

return the number of days in a given year

Format

format a date as a string

HostTimeZone

return the local time zone of the host computer

IsDaylightSavingTime

determine whether a given date falls during daylight saving time

IsLeapYear

check whether a year is a leap year

IsWeekend

check whether a day falls on a weekend

JulianDayNumber

compute the Julian day number of a date

ModifiedJulianDayNumber

compute the modified Julian day number of a date

Parse

parse a date from a string

Today

return a Date object for the current day

Calendar Numbering Conventions

• 

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.

Compatibility

• 

The Calendar package was introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

Date

Time