MCPcopy Create free account
hub / github.com/idank/explainshell / d3_time_parseAmPm

Function d3_time_parseAmPm

explainshell/web/static/js/d3.v3.js:8207–8210  ·  view source on GitHub ↗
(date, string, i)

Source from the content-addressed store, hash-verified

8205 }
8206 var d3_time_numberRe = /^\s*\d+/;
8207 function d3_time_parseAmPm(date, string, i) {
8208 var n = d3_time_amPmLookup.get(string.substring(i, i += 2).toLowerCase());
8209 return n == null ? -1 : (date.p = n, i);
8210 }
8211 var d3_time_amPmLookup = d3.map({
8212 am: 0,
8213 pm: 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected