yeardays

Number of days in year

Syntax

Days = yeardays(Year, Basis)

Arguments

Year

Enter as a four-digit integer.

Basis

(Optional) Day-count basis of the instrument. A vector of integers.

  • 0 = actual/actual (default)

  • 1 = 30/360 (SIA)

  • 2 = actual/360

  • 3 = actual/365

  • 4 = 30/360 (BMA)

  • 5 = 30/360 (ISDA)

  • 6 = 30/360 (European)

  • 7 = actual/365 (Japanese)

  • 8 = actual/actual (ICMA)

  • 9 = actual/360 (ICMA)

  • 10 = actual/365 (ICMA)

  • 11 = 30/360E (ICMA)

  • 12 = actual/actual (ISDA)

  • 13 = BUS/252

For more information, see basis.

Description

Days = yeardays(Year, Basis) returns the number of days in the given year, based upon the day-count basis.

Examples

Days = yeardays(2000)
Days =

       366
Days = yeardays(2000, 1)
Days =

   360
Was this topic helpful?