Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/proactive / / isWithinActiveHours

Function: isWithinActiveHours()

ts
function isWithinActiveHours(hours, now): boolean;

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

Stable

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