Refactor time comparison for timestamp age verification