MCPcopy Create free account
hub / github.com/microsoft/SandDance / parseZone

Function parseZone

docs/app/js/sanddance-app.js:112657–112660  ·  view source on GitHub ↗
(d, string, i)

Source from the content-addressed store, hash-verified

112655 return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
112656}
112657function parseZone(d, string, i) {
112658 var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
112659 return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
112660}
112661function parseQuarter(d, string, i) {
112662 var n = numberRe.exec(string.slice(i, i + 1));
112663 return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected