PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
date
var isDate = require('../lang/isDate'); var isLeapYear = require('./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]; } } module.exports = totalDaysInMonth;
[-] quarter.js
[edit]
[+]
..
[-] strftime.js
[edit]
[-] timezoneAbbr.js
[edit]
[-] isLeapYear.js
[edit]
[-] diff.js
[edit]
[-] totalDaysInMonth.js
[edit]
[-] isSame.js
[edit]
[-] dayOfTheYear.js
[edit]
[-] i18n_.js
[edit]
[+]
i18n
[-] startOf.js
[edit]
[-] parseIso.js
[edit]
[-] weekOfTheYear.js
[edit]
[-] totalDaysInYear.js
[edit]
[-] timezoneOffset.js
[edit]