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

Online Help

Calendar

  

DayOfYear

  

compute the day of the year of a given date

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

DayOfYear( d )

DayOfYear( year, month, day )

Parameters

d

-

Date ; the date whose day of the year is to be computed

year

-

integer; the year

month

-

posint; the month of the year

day

-

posint; the day of the month

Description

• 

The DayOfYear( d ) command computes the day of the year of the Date object d.

• 

The DayOfYear( year, month, day ) command computes the day of the year for the day-th day of the month month (1..12) in the year year.

• 

The day of the year of January 1 is equal to 1.  The last day of the year (December 31) is usually either 365, for an ordinary year, or 366 for a leap year.

Examples

withCalendar:

DayOfYearDate

61

(1)

DayOfYear2000,1,1

1

(2)

DayOfYear2000,12,31

366

(3)

DayOfYear2100,12,31

365

(4)

DayOfYear1900,12,31

365

(5)

DayOfYearDate1900,12,31

365

(6)

DayOfYear1582,12,31

355

(7)

DayOfYear1066,10,14

287

(8)

DayOfYear1066,12,25

359

(9)

Compatibility

• 

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

• 

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

See Also

Calendar

 


Download Help Document