@Test public void testDecodeTimestamp() { String[] tests = { "123456", "5761172f", "abcdef09", "58cfe588" }; long expected[] = { 1193046000L, 1465980719000L, 2882400009000L, 1490019720000L }; for (int i = 0; i < tests.length; i++) { Assert.assertEquals(expected[i], Timestamp.decodeTimeCookie(tests[i]).getTime()); } }
public static Date decodeTimeCookie(String cookie) throws NumberFormatException { return new Date(Long.parseLong(cookie, 16) * 1000); }
Timestamp { public static Date decodeTimeCookie(String cookie) throws NumberFormatException { return new Date(Long.parseLong(cookie, 16) * 1000); } }
Timestamp { public static Date decodeTimeCookie(String cookie) throws NumberFormatException { return new Date(Long.parseLong(cookie, 16) * 1000); } private  Timestamp(); }
Timestamp { public static Date decodeTimeCookie(String cookie) throws NumberFormatException { return new Date(Long.parseLong(cookie, 16) * 1000); } private  Timestamp(); static Date decodeTimeCookie(String cookie); static String encodeTimeCookie(Date date); }
Timestamp { public static Date decodeTimeCookie(String cookie) throws NumberFormatException { return new Date(Long.parseLong(cookie, 16) * 1000); } private  Timestamp(); static Date decodeTimeCookie(String cookie); static String encodeTimeCookie(Date date);  }