Lines Matching refs:base
3081 function positiveMomentsDifference(base, other) { argument
3084 res.months = other.month() - base.month() +
3085 (other.year() - base.year()) * 12;
3086 if (base.clone().add(res.months, 'M').isAfter(other)) {
3090 res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
3095 function momentsDifference(base, other) { argument
3097 if (!(base.isValid() && other.isValid())) {
3101 other = cloneWithOffset(other, base);
3102 if (base.isBefore(other)) {
3103 res = positiveMomentsDifference(base, other);
3105 res = positiveMomentsDifference(other, base);