(base, other)
| 3527 | } |
| 3528 | |
| 3529 | function positiveMomentsDifference(base, other) { |
| 3530 | var res = {}; |
| 3531 | |
| 3532 | res.months = |
| 3533 | other.month() - base.month() + (other.year() - base.year()) * 12; |
| 3534 | if (base.clone().add(res.months, 'M').isAfter(other)) { |
| 3535 | --res.months; |
| 3536 | } |
| 3537 | |
| 3538 | res.milliseconds = +other - +base.clone().add(res.months, 'M'); |
| 3539 | |
| 3540 | return res; |
| 3541 | } |
| 3542 | |
| 3543 | function momentsDifference(base, other) { |
| 3544 | var res; |
no test coverage detected