File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/mout/src/date/totalDaysInMonth.js
Back
define(['../lang/isDate', './isLeapYear'], function (isDate, isLeapYear) { var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; /** * returns the total amount of days in the month (considering leap years) */ function totalDaysInMonth(fullYear, monthIndex){ if (isDate(fullYear)) { monthIndex = fullYear.getMonth(); } if (monthIndex === 1 && isLeapYear(fullYear)) { return 29; } else { return DAYS_IN_MONTH[monthIndex]; } } return totalDaysInMonth; });
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings