Function: isValidTimestamp()
isValidTimestamp(
value
:unknown
):value is number
Defined in: shared/utils/typeGuards.ts:278
Determines if a value is a valid Unix timestamp (seconds or milliseconds). Allows timestamps up to 1 day in the future from the current time.
Parametersโ
valueโ
unknown
The value to check.
Returnsโ
value is number
True if value
is a valid timestamp; otherwise, false.