This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns true if year is a leap year | |
* @param {Number} year | |
*/ | |
function isLeapYear(year) { | |
return (((year % 4 == 0) && (year % 100 !== 0)) || (year % 400 == 0)) | |
} | |
/** | |
* Returns number of days till current month from start of the year |