PointInTimeFormat { public static DateTimeFormatter time() { if (t == null) { t = forPattern(DEFAULT_TIME_PATTERN); } return t; } protected  PointInTimeFormat(); static DateTimeFormatter forPattern(String pattern); static DateTimeFormatter date(); static DateTimeFormatter dateTime(); static DateTimeFormatter time(); static DateTimeFormatter year(); static DateTimeFormatter monthAndYear(); static DateTimeFormatter forPointInTime(PointInTime t); static DateTimeFormatter forPrecision(Precision p);  }
@Test public void testDefaultTimeFormat() { PointInTime t = new PointInTime(1984, 3, 11, 22, 56, 56); Assert.assertEquals("22:56", PointInTimeFormat.time().print(t)); }