/** * Get the prev day of the specified weekday. If today is the specified weekday, then return one * week before now. */ public Abstime prevWeekday(int weekday) { Abstime t = prevDay(); while (t.getWeekday() != weekday) t = t.prevDay(); return t; }