DateTimeUtils { public static Date getNearestHour() { return DateUtils.ceiling(new Date(), Calendar.HOUR); }  static String currentTimeAsString(); static String timeAsString(Date date); static String timeAsString(long timeMilli); synchronized static Date getHoursLaterDate(int hours); synchronized static Date getMinutesLaterThan(Date date, int minute); synchronized static Date getSecondsLaterThan(Date date, int second); static Date getHoursBeforeDate(Date date, int hours); static Date getNearestHour(); static String format; }
@Test public void testGetNearestHour() throws Exception { Date date = DateTimeUtils.getNearestHour(); logger.info("{}", date); }