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

Function parseYear

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

Source from the content-addressed store, hash-verified

16423}
16424
16425function parseYear(d, string, i) {
16426 var n = numberRe.exec(string.slice(i, i + 2));
16427 return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
16428}
16429
16430function parseZone(d, string, i) {
16431 var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected