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

Function parseHour24

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

Source from the content-addressed store, hash-verified

112675 return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
112676}
112677function parseHour24(d, string, i) {
112678 var n = numberRe.exec(string.slice(i, i + 2));
112679 return n ? (d.H = +n[0], i + n[0].length) : -1;
112680}
112681function parseMinutes(d, string, i) {
112682 var n = numberRe.exec(string.slice(i, i + 2));
112683 return n ? (d.M = +n[0], i + n[0].length) : -1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected