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

Function to

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

Source from the content-addressed store, hash-verified

3559 }
3560
3561 function to (time, withoutSuffix) {
3562 if (!this.isValid()) {
3563 return this.localeData().invalidDate();
3564 }
3565 return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
3566 }
3567
3568 function toNow (withoutSuffix) {
3569 return this.to(local__createLocal(), withoutSuffix);

Callers

nothing calls this directly

Calls 1

create__createDurationFunction · 0.85

Tested by

no test coverage detected