Controller functions to handle overdue tests
- Version:
-
- 0.0.1
Methods
-
<inner> daysBetweenDates(date1, date2)
-
Parameters:
Name Type Description date1
Date date2
Date Returns:
The number of days in between.- Type
- Int
-
<inner> sortByOverdueTime(tests)
-
Returns a sorted list in descending order based on how much time each test has been overdue for.
Parameters:
Name Type Description tests
List The list of overdue tests Returns:
A sorted version of the imput list- Type
- List