130131132133134135136137
Time after = new Time(today.getTime() + 1); Time before = new Time(today.getTime() - 1); // Note that Times internally retain millisecond precision assertTrue(after.after(today)); assertTrue(before.before(today)); } }