### Question:
TimeUtils { public static String getDailyByTime(long time) { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); String result = format.format(new Date(time * 1000l)); return result.replaceAll("-", ""); }  static String getTodayDaily(); static String getTodayDaily(int N); static String getDailyByTime(long time); static long getSomeDayTime(int N);  }### Answer:
@Test public void testGetDailyByTime() { long time = System.currentTimeMillis() / 1000; assertTrue(TimeUtils.getDailyByTime(time).length() == 8); }