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

Function isSame

code/gmane/Chart.bundle.js:3467–3477  ·  view source on GitHub ↗
(input, units)

Source from the content-addressed store, hash-verified

3465 }
3466
3467 function isSame (input, units) {
3468 var inputMs;
3469 units = normalizeUnits(units || 'millisecond');
3470 if (units === 'millisecond') {
3471 input = isMoment(input) ? input : local__createLocal(input);
3472 return +this === +input;
3473 } else {
3474 inputMs = +local__createLocal(input);
3475 return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
3476 }
3477 }
3478
3479 function diff (input, units, asFloat) {
3480 var that = cloneWithOffset(input, this),

Callers

nothing calls this directly

Calls 4

normalizeUnitsFunction · 0.85
isMomentFunction · 0.85
local__createLocalFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected