Calendar.weekday( int month, int day, int year ) Get the weekday number of the given day. @return int Calendar.weekday.return 1 for Sunday 2 for Monday 3 for Tuesday 4 for Wednesday 5 for Thursday 6 for Friday 7 for Saturday @params int month 1 - 12 Warning: No Validation & Exception Handling Implemented. @params int day day in a month. 1 - 28,29,30,31 properly for the month Warning: No Validation & Exception Handling Implemented. @params int year year e.g. 2019 @depdendency Calendar.dateDiff() This uses Calendar.dateDiff() to calculate date difference from a specific date whose weekday is known. @dependency Calendar.countDatesInAYear() Calendar.dateDiff() requires Calendar.countDatesInAYear() @dependency Calendar.isLeapYear() Calendar.dateDiff() requires Calendar.isLeapYear() @dependency Calendar.compareDates() Calendar.dateDiff() requires Calendar.compareDates() @example Calendar.weekday( 9, 3, 2019 ) 3 meaning Tuesday
@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.