Пример #1
0
 public static int getday2now(String ltime) {
   BingLog.i("时间", "时间:" + ltime);
   long time = BingDateUtils.getTime(ltime);
   long now = System.currentTimeMillis();
   long msg = time;
   long calcMills = now - msg;
   long calDay = calcMills / 1000 / 60 / 60 / 24;
   BingLog.i("时间", "时间:" + calDay);
   return (int) calDay;
 }
Пример #2
0
 public static String getListTime(String time) {
   long ltime = BingDateUtils.getTime(time);
   return getListTime(ltime);
 }