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

Function parseIso

code/gmane/Chart.bundle.js:3344–3351  ·  view source on GitHub ↗
(inp, sign)

Source from the content-addressed store, hash-verified

3342 create__createDuration.fn = Duration.prototype;
3343
3344 function parseIso (inp, sign) {
3345 // We'd normally use ~~inp for this, but unfortunately it also
3346 // converts floats to ints.
3347 // inp may be undefined, so careful calling replace on it.
3348 var res = inp && parseFloat(inp.replace(',', '.'));
3349 // apply sign while we're at it
3350 return (isNaN(res) ? 0 : res) * sign;
3351 }
3352
3353 function positiveMomentsDifference(base, other) {
3354 var res = {milliseconds: 0, months: 0};

Callers 1

create__createDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected