MCPcopy Create free account
hub / github.com/csev/py4e / endOf

Function endOf

code/gmane/Chart.bundle.js:3644–3650  ·  view source on GitHub ↗
(units)

Source from the content-addressed store, hash-verified

3642 }
3643
3644 function endOf (units) {
3645 units = normalizeUnits(units);
3646 if (units === undefined || units === 'millisecond') {
3647 return this;
3648 }
3649 return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
3650 }
3651
3652 function to_type__valueOf () {
3653 return +this._d - ((this._offset || 0) * 60000);

Callers

nothing calls this directly

Calls 1

normalizeUnitsFunction · 0.85

Tested by

no test coverage detected