@Test public void testDate2rawtime() throws IOException { Assert.assertEquals(DateUtils.date2rawtime(c1.getTime()), __0001_01_01_00_00_00); Assert.assertEquals(DateUtils.date2rawtime(c2.getTime()), __1927_12_31_23_54_07); Assert.assertEquals(DateUtils.date2rawtime(c3.getTime()), __1928_01_01_00_00_00); Assert.assertEquals(DateUtils.date2rawtime(c4.getTime()), __1970_01_01_00_00_00); Assert.assertEquals(DateUtils.date2rawtime(c5.getTime()), __1997_08_31_23_59_59); Assert.assertEquals(DateUtils.date2rawtime(c6.getTime()), __1997_09_01_00_59_59); Assert.assertEquals(DateUtils.date2rawtime(c7.getTime()), __2000_02_29_23_59_59); Assert.assertEquals(DateUtils.date2rawtime(c8.getTime()), __2014_08_26_15_22_46); Assert.assertEquals(DateUtils.date2rawtime(c9.getTime()), __2018_11_30_23_59_59); Assert.assertEquals(DateUtils.date2rawtime(c10.getTime()), __2499_01_01_00_00_00); Assert.assertEquals(DateUtils.date2rawtime(c11.getTime()), __1986_05_04_01_00_00); Assert.assertEquals(DateUtils.date2rawtime(c12.getTime()), __1986_05_04_02_00_00); }
public static long date2rawtime(Date date) { return date2rawtime(date, SHANGHAI_CAL); }
DateUtils { public static long date2rawtime(Date date) { return date2rawtime(date, SHANGHAI_CAL); } }
DateUtils { public static long date2rawtime(Date date) { return date2rawtime(date, SHANGHAI_CAL); }  }
DateUtils { public static long date2rawtime(Date date) { return date2rawtime(date, SHANGHAI_CAL); }  static long date2ms(Date date, Calendar calendar); static long date2ms(Date date); static Date ms2date(long ms); static Date ms2date(long ms, Calendar calendar); static long date2rawtime(Date date); static long date2rawtime(Date date, Calendar calendar); static Date rawtime2date(long rawtime); static Date rawtime2date(long rawtime, Calendar calendar); static String formatRfc822Date(Date date); static Date parseRfc822Date(String dateString); static long getDayOffset(java.sql.Date date); static java.sql.Date fromDayOffset(long offset); }
DateUtils { public static long date2rawtime(Date date) { return date2rawtime(date, SHANGHAI_CAL); }  static long date2ms(Date date, Calendar calendar); static long date2ms(Date date); static Date ms2date(long ms); static Date ms2date(long ms, Calendar calendar); static long date2rawtime(Date date); static long date2rawtime(Date date, Calendar calendar); static Date rawtime2date(long rawtime); static Date rawtime2date(long rawtime, Calendar calendar); static String formatRfc822Date(Date date); static Date parseRfc822Date(String dateString); static long getDayOffset(java.sql.Date date); static java.sql.Date fromDayOffset(long offset); static Calendar LOCAL_CAL; static Calendar SHANGHAI_CAL; }