MCPcopy Index your code
hub / github.com/darkreader/darkreader / parse24HTime

Function parse24HTime

src/utils/time.ts:26–28  ·  view source on GitHub ↗
(time: string)

Source from the content-addressed store, hash-verified

24}
25
26function parse24HTime(time: string): number[] {
27 return time.split(':').map((x) => parseInt(x));
28}
29
30function compareTime(time1: number[], time2: number[]): -1 | 0 | 1 {
31 if (time1[0] === time2[0] && time1[1] === time2[1]) {

Callers 2

nextTimeIntervalFunction · 0.85
isInTimeIntervalLocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected