Checks if a sync snapshot is stale based on age.
Snapshot timestamp in milliseconds.
Max age before stale (default 24 hours).
True if stale, false otherwise.
export function isSyncSnapshotStale( timestamp: number, maxAgeHours: number = 24,): boolean { const ageInHours = (Date.now() - timestamp) / (1000 * 60 * 60); return ageInHours > maxAgeHours;} Copy
export function isSyncSnapshotStale( timestamp: number, maxAgeHours: number = 24,): boolean { const ageInHours = (Date.now() - timestamp) / (1000 * 60 * 60); return ageInHours > maxAgeHours;}
Checks if a sync snapshot is stale based on age.