()
| 495 | } |
| 496 | |
| 497 | function __getUuid() { |
| 498 | return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { |
| 499 | //noinspection NonShortCircuitBooleanExpressionJS |
| 500 | var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); |
| 501 | return v.toString(16); |
| 502 | }); |
| 503 | } |
| 504 | |
| 505 | function __durationToSeconds(duration) { |
| 506 | // basic algorithm from https://github.com/nezasa/iso8601-js-period |
no outgoing calls
no test coverage detected