(input, units)
| 3770 | } |
| 3771 | |
| 3772 | function isBefore(input, units) { |
| 3773 | var localInput = isMoment(input) ? input : createLocal(input); |
| 3774 | if (!(this.isValid() && localInput.isValid())) { |
| 3775 | return false; |
| 3776 | } |
| 3777 | units = normalizeUnits(units) || 'millisecond'; |
| 3778 | if (units === 'millisecond') { |
| 3779 | return this.valueOf() < localInput.valueOf(); |
| 3780 | } else { |
| 3781 | return this.clone().endOf(units).valueOf() < localInput.valueOf(); |
| 3782 | } |
| 3783 | } |
| 3784 | |
| 3785 | function isBetween(from, to, units, inclusivity) { |
| 3786 | var localFrom = isMoment(from) ? from : createLocal(from), |
nothing calls this directly
no test coverage detected