Calendar.countDatesInAYear( int month, int day, int year ) Count the number of dates from the beginning of the year to the given date. January 1st is counted as 1, January 2nd is counted as 2, and so on. @return int Calendar.countDatesInAYear.return date count result @param int month 1 - 12 Warning: No Validation & Exception Handling Implemented. @param int day day in a month. 1 - 28,29,30,31 properly for the month Warning: No Validation & Exception Handling Implemented. @param int year year e.g. 2019 @dependency Calendar.isLeapYear() This uses Calendar.isLeapYear() to add 28 or 29 days for February if the month is greater than 2. @example Calendar.countDatesInAYear( 3, 6, 2019 ) 65
@author mathphysicscomputer @authorEmail math.physics.computer@gmail.com NOTE: If the backpack gives an error to load this script because this is too large to it, try with a smaller part, empty backpack, and repeat this process.