function isInWarningWindow
isInWarningWindow(
now: number,
cutoff: string,
warnDays: number
): boolean

Pure helper: is the current time within the warning window before cutoff?

Parameters

now: number
cutoff: string
warnDays: number

Return Type

boolean

Usage

import { isInWarningWindow } from "doc.ts";