Packages

A web application in pursuit of meaning in life.

Retired package: Complete rewrite, scratch old versions

Current section

Files

Jump to
udia assets node_modules mout src date totalDaysInYear.js
Raw

assets/node_modules/mout/src/date/totalDaysInYear.js

define(['./isLeapYear'], function (isLeapYear) {
/**
* return the amount of days in the year following the gregorian calendar
* and leap years
*/
function totalDaysInYear(fullYear){
return isLeapYear(fullYear)? 366 : 365;
}
return totalDaysInYear;
});