Function: isValidTimestamp()
isValidTimestamp(
value:unknown):value is number
Defined in: shared/utils/typeGuards.ts:274
Checks whether a value represents a realistic Unix timestamp.
Parametersโ
valueโ
unknown
Value to evaluate.
Returnsโ
value is number
true when the value is a positive number within the allowed range.
Remarksโ
Accepts timestamps expressed in either seconds or milliseconds and permits values up to 24 hours ahead of the current time.