totalDaysInYear.js 294 B

12345678910111213
  1. var isLeapYear = require('./isLeapYear');
  2. /**
  3. * return the amount of days in the year following the gregorian calendar
  4. * and leap years
  5. */
  6. function totalDaysInYear(fullYear){
  7. return isLeapYear(fullYear)? 366 : 365;
  8. }
  9. module.exports = totalDaysInYear;