I need to implement a function
int secondsTillNextSaturday(LocalDateTime start);
Which does the same thing as said, calculates the number of seconds until the next Saturday relative to the start time (if the start is already on Saturday, then it should return the number of seconds until the next Saturday after it).
For example, for 04/27/2017 00:00:00 (Thursday), he should return 2 * 24 * 60 * 60.
source
share