(input, units)
| 3465 | } |
| 3466 | |
| 3467 | function isSame (input, units) { |
| 3468 | var inputMs; |
| 3469 | units = normalizeUnits(units || 'millisecond'); |
| 3470 | if (units === 'millisecond') { |
| 3471 | input = isMoment(input) ? input : local__createLocal(input); |
| 3472 | return +this === +input; |
| 3473 | } else { |
| 3474 | inputMs = +local__createLocal(input); |
| 3475 | return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units)); |
| 3476 | } |
| 3477 | } |
| 3478 | |
| 3479 | function diff (input, units, asFloat) { |
| 3480 | var that = cloneWithOffset(input, this), |
nothing calls this directly
no test coverage detected