@Test public void testStripDate() { Date datetime = DateUtil.newDate(2008, Calendar.JULY, 3, 22, 56, 32); Date expected = DateUtil.newDate(1970, Calendar.JANUARY, 1, 22, 56, 32); Date stripped = DateUtil.stripDate(datetime); assertEquals(expected, stripped); }
public static Date stripDate(final Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(1970, Calendar.JANUARY, 1); return cal.getTime(); }
DateUtil { public static Date stripDate(final Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(1970, Calendar.JANUARY, 1); return cal.getTime(); } }
DateUtil { public static Date stripDate(final Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(1970, Calendar.JANUARY, 1); return cal.getTime(); } private  DateUtil(); }
DateUtil { public static Date stripDate(final Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(1970, Calendar.JANUARY, 1); return cal.getTime(); } private  DateUtil(); static Date joinDateAndTime(final Date date, final Date time); static Date newDate(final int year, final int month, final int date); static Date newDate(final int year,
                               final int month,
                               final int date,
                               final int hourOfDay,
                               final int minute,
                               final int second); static Date stripDate(final Date date); static Date stripTime(final Date date); }
DateUtil { public static Date stripDate(final Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(1970, Calendar.JANUARY, 1); return cal.getTime(); } private  DateUtil(); static Date joinDateAndTime(final Date date, final Date time); static Date newDate(final int year, final int month, final int date); static Date newDate(final int year,
                               final int month,
                               final int date,
                               final int hourOfDay,
                               final int minute,
                               final int second); static Date stripDate(final Date date); static Date stripTime(final Date date);  }