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 (PSA)

  • 5 = 30/360 (ISDA)

  • 6 = 30/360 (European)

  • 7 = actual/365 (Japanese)

  • 8 = actual/actual (ISMA)

  • 9 = actual/360 (ISMA)

  • 10 = actual/365 (ISMA)

  • 11 = 30/360E (ISMA)

  • 12 = actual/365 (ISDA)

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

See Also

days360, days365, daysact, year, yearfrac

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS