Function File: d = yeardays (y)
Function File: d = yeardays (y, b)

Return the number of days in the year y with an optional basis b.

Valid bases

  • 0 actual/actual (default)
  • 1 30/360 (SIA)
  • 2 actual/360
  • 3 actual/365
  • 4 30/360 (PSA)
  • 5 30/360 (IDSA)
  • 6 30/360 (European)
  • 7 actual/365 (Japanese)
  • 8 actual/actual (ISMA)
  • 9 actual/360 (ISMA)
  • 10 actual/365 (ISMA)
  • 11 30/360E (ISMA)

See also: days365, days360, daysact, daysdif.

Package: financial