(inp, sign)
| 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}; |
no outgoing calls
no test coverage detected