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

Function isInTimeIntervalUTC

src/utils/time.ts:89–94  ·  view source on GitHub ↗
(time0: number, time1: number, timestamp: number)

Source from the content-addressed store, hash-verified

87}
88
89function isInTimeIntervalUTC(time0: number, time1: number, timestamp: number): boolean {
90 if (time1 < time0) {
91 return timestamp <= time1 || time0 <= timestamp;
92 }
93 return time0 < timestamp && timestamp < time1;
94}
95
96interface Duration {
97 days?: number;

Callers 1

isNightAtLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected