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