Close
Close window
DaysInMonth - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Calendar

DaysInMonth

compute the number of days in a given month

Calling Sequence

DaysInMonth( year, month )

Parameters

year

-

integer; the year in which the month occurs

month

-

integer; the numeric value (1..12) of the month

Description

The DaysInMonth( year, month ) command computes the number of days in the month month of the year year. It is necessary to specify the year in order to take account of leap years.

Examples

>

withCalendar:

>

DaysInMonth2000,2

29

(1)
>

DaysInMonth2001,2

28

(2)
>

DaysInMonth1900,2

28

(3)
>

DaysInMonth1995,10

31

(4)
>

DaysInMonth1582,10

21

(5)

Compatibility

The Calendar[DaysInMonth] command was introduced in Maple 2018.

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /