(input, units)
| 3757 | } |
| 3758 | |
| 3759 | function isAfter(input, units) { |
| 3760 | var localInput = isMoment(input) ? input : createLocal(input); |
| 3761 | if (!(this.isValid() && localInput.isValid())) { |
| 3762 | return false; |
| 3763 | } |
| 3764 | units = normalizeUnits(units) || 'millisecond'; |
| 3765 | if (units === 'millisecond') { |
| 3766 | return this.valueOf() > localInput.valueOf(); |
| 3767 | } else { |
| 3768 | return localInput.valueOf() < this.clone().startOf(units).valueOf(); |
| 3769 | } |
| 3770 | } |
| 3771 | |
| 3772 | function isBefore(input, units) { |
| 3773 | var localInput = isMoment(input) ? input : createLocal(input); |
nothing calls this directly
no test coverage detected