Code example for TimeUnit

Methods: convert

0
   *  
   * TimeUtils.convert(5L, TimeUnit.MINUTS, TimeUnit.MILLISECONDS) 
   * TimeUnit.MILLISECONDS.convert(5L, TimeUnit.MINUTES) 
   */ 
  public static long convert(long time, TimeUnit src, TimeUnit dst) {
    return dst.convert(time, src);
  } 
}