public long add(long instant, long value) {
   long addition = FieldUtils.safeMultiply(value, iUnitMillis);
   return FieldUtils.safeAdd(instant, addition);
 }
Пример #2
0
 public long add(long instant, long value) {
   long scaled = FieldUtils.safeMultiply(value, iScalar);
   return getWrappedField().add(instant, scaled);
 }
 /**
  * Get the millisecond duration of this field from its value.
  *
  * @param value the value of the field, which may be negative
  * @param instant ignored
  * @return the milliseconds that the field represents, which may be negative
  */
 public long getMillis(long value, long instant) {
   return FieldUtils.safeMultiply(value, iUnitMillis);
 }
Пример #4
0
 public long getMillis(long value, long instant) {
   long scaled = FieldUtils.safeMultiply(value, iScalar);
   return getWrappedField().getMillis(scaled, instant);
 }