MCPcopy Create free account
hub / github.com/breck7/scroll / parseZone

Function parseZone

external/.d3.js:16430–16433  ·  view source on GitHub ↗
(d, string, i)

Source from the content-addressed store, hash-verified

16428}
16429
16430function parseZone(d, string, i) {
16431 var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
16432 return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
16433}
16434
16435function parseQuarter(d, string, i) {
16436 var n = numberRe.exec(string.slice(i, i + 1));

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected