List of utility methods to do Time to Week
int | hoursToEndOfWeek(Time t) Return number of whole hoursto the end of the week of a given time. t.normalize(false); final int hoursPassedInWeek = (t.weekDay * 24) + t.hour; return Math.max(0, (7 * 24) - hoursPassedInWeek); |