T { public static T now() { T t = new T(); t.time = System.currentTimeMillis(); return t; }  static T now(); static T msecs(long msec); static T secs(long sec); static T mins(long min); static T hours(long hour); static T days(long day); static T months(long month); long msecs(); long secs(); long mins(); long hours(); long days(); T plus(T plus); T minus(T minus);  }
@Test public void now() { Assert.assertTrue(Math.abs(T.now().msecs() - System.currentTimeMillis()) < 5000); }