@Test public void getAbsoluteTimeInterval() { TimeInterval oneMin = TimeParser.getTimeInterval("3 mins ago", "2 mins ago"); Assert.assertEquals( "Failed to get time Interval for String: from:3 mins ago to:2 mins ago", 60, between(oneMin.getStart(), oneMin.getEnd()).getSeconds(), 0); String startTime = "1976-01-01T00:00:00"; String endTime = "1976-01-02T00:00:00"; TimeInterval oneDay = TimeParser.getTimeInterval(startTime, endTime); Assert.assertEquals("Failed to get time Interval for String: from:" + startTime + " to:" + endTime, 60 * 60 * 24, between(oneDay.getStart(), oneDay.getEnd()).getSeconds(), 0); }
public static TimeInterval getTimeInterval(String time) { return getTimeInterval(time, "now"); }
TimeParser { public static TimeInterval getTimeInterval(String time) { return getTimeInterval(time, "now"); } }
TimeParser { public static TimeInterval getTimeInterval(String time) { return getTimeInterval(time, "now"); }  }
TimeParser { public static TimeInterval getTimeInterval(String time) { return getTimeInterval(time, "now"); }  static Duration getDuration(String time); static TimeInterval getTimeInterval(String time); static TimeInterval getTimeInterval(String start, String end); static Instant getInstant(String time); }
TimeParser { public static TimeInterval getTimeInterval(String time) { return getTimeInterval(time, "now"); }  static Duration getDuration(String time); static TimeInterval getTimeInterval(String time); static TimeInterval getTimeInterval(String start, String end); static Instant getInstant(String time);  }