Member Junction
Preparing search index...
@memberjunction/scheduling-engine
IsRoutineWithinActivationWindow
Function IsRoutineWithinActivationWindow
IsRoutineWithinActivationWindow
(
fields
:
Pick
<
UserRoutineScheduleFields
,
"StartAt"
|
"EndAt"
>
,
now
:
Date
,
)
:
boolean
Activation-window check (independent of NextRunAt):
StartAt: NULL = eligible immediately; otherwise eligible once
StartAt <= now
.
EndAt: NULL = no end; otherwise eligible only while
EndAt > now
(automatic sunset — a routine whose EndAt equals the evaluation time has already ended).
Parameters
fields
:
Pick
<
UserRoutineScheduleFields
,
"StartAt"
|
"EndAt"
>
now
:
Date
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Member Junction
Loading...
Activation-window check (independent of NextRunAt):
StartAt <= now.EndAt > now(automatic sunset — a routine whose EndAt equals the evaluation time has already ended).