Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/proactive / / isWithinActiveHours

Function: isWithinActiveHours()

ts
function isWithinActiveHours(hours, now): boolean;

Defined in: packages/proactive/src/active-hours.ts:51

true when now (epoch ms) falls inside the window's wall clock. Pure and deterministic for a given clock value.

Parameters

ParameterType
hoursActiveHours
nownumber

Returns

boolean

Stable