MCPcopy Index your code
hub / github.com/csev/py4e / from

Function from

code/gmane/Chart.bundle.js:3550–3555  ·  view source on GitHub ↗
(time, withoutSuffix)

Source from the content-addressed store, hash-verified

3548 }
3549
3550 function from (time, withoutSuffix) {
3551 if (!this.isValid()) {
3552 return this.localeData().invalidDate();
3553 }
3554 return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
3555 }
3556
3557 function fromNow (withoutSuffix) {
3558 return this.from(local__createLocal(), withoutSuffix);

Callers

nothing calls this directly

Calls 1

create__createDurationFunction · 0.85

Tested by

no test coverage detected