示例#1
0
 public static Long convertTime(Long time, TimeUnit from, TimeUnit to) {
   return (time == null) ? null : new Long((time.longValue() * from.getFactor()) / to.getFactor());
 }