(input, units)
| 3449 | } |
| 3450 | |
| 3451 | function isBefore (input, units) { |
| 3452 | var inputMs; |
| 3453 | units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond'); |
| 3454 | if (units === 'millisecond') { |
| 3455 | input = isMoment(input) ? input : local__createLocal(input); |
| 3456 | return +this < +input; |
| 3457 | } else { |
| 3458 | inputMs = isMoment(input) ? +input : +local__createLocal(input); |
| 3459 | return +this.clone().endOf(units) < inputMs; |
| 3460 | } |
| 3461 | } |
| 3462 | |
| 3463 | function isBetween (from, to, units) { |
| 3464 | return this.isAfter(from, units) && this.isBefore(to, units); |
nothing calls this directly
no test coverage detected