(time, withoutSuffix)
| 18085 | } |
| 18086 | |
| 18087 | function from (time, withoutSuffix) { |
| 18088 | if (this.isValid() && |
| 18089 | ((isMoment(time) && time.isValid()) || |
| 18090 | createLocal(time).isValid())) { |
| 18091 | return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); |
| 18092 | } else { |
| 18093 | return this.localeData().invalidDate(); |
| 18094 | } |
| 18095 | } |
| 18096 | |
| 18097 | function fromNow (withoutSuffix) { |
| 18098 | return this.from(createLocal(), withoutSuffix); |
no test coverage detected