MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / parseTimeReq

Method parseTimeReq

contributed/modClock/main.js:363–369  ·  view source on GitHub ↗
(timeRequest)

Source from the content-addressed store, hash-verified

361 }
362
363 parseTimeReq(timeRequest) {
364 if (undefined === timeRequest)
365 return 0;
366 let h = timeRequest.slice(0,2);
367 let m = timeRequest.slice(-2);
368 return h+m;
369 }
370
371
372// checkFormat looks for "f" within formats. If not found, treat f as an index

Callers 1

configServerMethod · 0.80

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected