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

Function momentsDifference

code/gmane/Chart.bundle.js:3367–3379  ·  view source on GitHub ↗
(base, other)

Source from the content-addressed store, hash-verified

3365 }
3366
3367 function momentsDifference(base, other) {
3368 var res;
3369 other = cloneWithOffset(other, base);
3370 if (base.isBefore(other)) {
3371 res = positiveMomentsDifference(base, other);
3372 } else {
3373 res = positiveMomentsDifference(other, base);
3374 res.milliseconds = -res.milliseconds;
3375 res.months = -res.months;
3376 }
3377
3378 return res;
3379 }
3380
3381 function createAdder(direction, name) {
3382 return function (val, period) {

Callers 1

create__createDurationFunction · 0.85

Calls 2

cloneWithOffsetFunction · 0.85

Tested by

no test coverage detected