Calendar.dateDiff( int fromMonth, int fromDay, int fromYear, int toMonth, int toDay, int toYear ) Count the date interval from "From" Date to "To" Date. @return int Calendar.dateDiff.return Date Difference from "From" Date to "To" Date. if "To" date is earlier than "From", this returns a negative number. @params int fromMonth, toMonth 1 - 12 Warning: No Validation & Exception Handling Implemented. @params int fromDay, toDay day in a month. 1 - 28,29,30,31 properly for the month Warning: No Validation & Exception Handling Implemented. @params int fromYear, toYear year e.g. 2019 @dependency Calendar.countDatesInAYear() This uses Calendar.countDatesInAYear() to calculate the number of dates. @dependency Calendar.isLeapYear() This uses Calendar.isLeapYear() to add 365 or 366 days for each year. @dependency Calendar.compareDates() This uses Calendar.compareDates() to handle an inverted date range and to give a negative return. @example Calendar.dateDiff( 3, 6, 1992, 7, 5, 2019 ) 9982 Calendar.dateDiff( 7, 5, 2019, 3, 6, 1992 ) -9982
@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.