@Test @Ignore public void testGetDayEnd() { Assert.assertNull(DateUtil.getDayEnd(null)); Assert.assertEquals(new Date(1_515_628_799_999L), DateUtil.getDayEnd( new Date(1_515_585_600_000L))); }
public static Date getDayEnd(Date date) { if (date == null) { return null; } Calendar calendar = Calendar.getInstance(); calendar.setTime(date); setCalender(calendar, 23, 59, 59, 999); return calendar.getTime(); }
DateUtil { public static Date getDayEnd(Date date) { if (date == null) { return null; } Calendar calendar = Calendar.getInstance(); calendar.setTime(date); setCalender(calendar, 23, 59, 59, 999); return calendar.getTime(); } }
DateUtil { public static Date getDayEnd(Date date) { if (date == null) { return null; } Calendar calendar = Calendar.getInstance(); calendar.setTime(date); setCalender(calendar, 23, 59, 59, 999); return calendar.getTime(); }  }
DateUtil { public static Date getDayEnd(Date date) { if (date == null) { return null; } Calendar calendar = Calendar.getInstance(); calendar.setTime(date); setCalender(calendar, 23, 59, 59, 999); return calendar.getTime(); }  static Date addDate(int field, int amount); static Date addDate(Date date, int field, int amount); static String format(Date date, String pattern); static Date getDayBegin(Date date); static Date getDayBegin(); static Date getDayEnd(Date date); static Date getDayEnd(); static void setCalender(Calendar calendar, int hour, int minute, int second, int milliSecond); static boolean isBetween(Date beginTime, Date endTime); static Date max(Date a, Date b); }
DateUtil { public static Date getDayEnd(Date date) { if (date == null) { return null; } Calendar calendar = Calendar.getInstance(); calendar.setTime(date); setCalender(calendar, 23, 59, 59, 999); return calendar.getTime(); }  static Date addDate(int field, int amount); static Date addDate(Date date, int field, int amount); static String format(Date date, String pattern); static Date getDayBegin(Date date); static Date getDayBegin(); static Date getDayEnd(Date date); static Date getDayEnd(); static void setCalender(Calendar calendar, int hour, int minute, int second, int milliSecond); static boolean isBetween(Date beginTime, Date endTime); static Date max(Date a, Date b);  }