@Test public void testGetTime() { Calendar cal = new GregorianCalendar(aus); cal.set(2011, Calendar.FEBRUARY, 25, 23, 55, 56); cal.set(Calendar.MILLISECOND, 23); Date date = cal.getTime(); String result = ISODate.getTime(date, aus); assertThat(result, is("235556")); Calendar cal2 = new GregorianCalendar(TimeZone.getDefault()); cal2.set(2011, Calendar.FEBRUARY, 25, 23, 55, 56); cal2.set(Calendar.MILLISECOND, 23); Date date2 = cal2.getTime(); String result2 = ISODate.getTime(date2, TimeZone.getDefault()); assertThat(result2, is("235556")); }
public static String getTime (Date d) { return formatDate (d, "HHmmss"); }
ISODate { public static String getTime (Date d) { return formatDate (d, "HHmmss"); } }
ISODate { public static String getTime (Date d) { return formatDate (d, "HHmmss"); } private  ISODate(); }
ISODate { public static String getTime (Date d) { return formatDate (d, "HHmmss"); } private  ISODate(); static String formatDate(Date d, String pattern); static String formatDate(Date d, String pattern, TimeZone timeZone); static Date parse(String s); static Date parse(String s, TimeZone timeZone); static Date parseDateTime(String s); static Date parseDateTime(String s, TimeZone timeZone); static Date parseISODate(String d); static Date parseISODate(String d, TimeZone timeZone); static Date parseISODate(String d, long currentTime); static Date parseISODate(String d, long currentTime, TimeZone timeZone); static String getDateTime(Date d); static String getDateTime(Date d, TimeZone timeZone); static String getTime(Date d); static String getTime(Date d, TimeZone timeZone); static String getDate(Date d); static String getDate(Date d, TimeZone timeZone); static String getANSIDate(Date d); static String getANSIDate(Date d, TimeZone timeZone); static String getEuropeanDate(Date d); static String getEuropeanDate(Date d, TimeZone timeZone); static String getExpirationDate(Date d); static String getExpirationDate(Date d, TimeZone timeZone); static String getJulianDate(Date d); static String getJulianDate(Date d, TimeZone timeZone); }
ISODate { public static String getTime (Date d) { return formatDate (d, "HHmmss"); } private  ISODate(); static String formatDate(Date d, String pattern); static String formatDate(Date d, String pattern, TimeZone timeZone); static Date parse(String s); static Date parse(String s, TimeZone timeZone); static Date parseDateTime(String s); static Date parseDateTime(String s, TimeZone timeZone); static Date parseISODate(String d); static Date parseISODate(String d, TimeZone timeZone); static Date parseISODate(String d, long currentTime); static Date parseISODate(String d, long currentTime, TimeZone timeZone); static String getDateTime(Date d); static String getDateTime(Date d, TimeZone timeZone); static String getTime(Date d); static String getTime(Date d, TimeZone timeZone); static String getDate(Date d); static String getDate(Date d, TimeZone timeZone); static String getANSIDate(Date d); static String getANSIDate(Date d, TimeZone timeZone); static String getEuropeanDate(Date d); static String getEuropeanDate(Date d, TimeZone timeZone); static String getExpirationDate(Date d); static String getExpirationDate(Date d, TimeZone timeZone); static String getJulianDate(Date d); static String getJulianDate(Date d, TimeZone timeZone); static final long ONE_YEAR; }