This is not a good way to check if you have a valid timestamp. Better is that you use `datetime.date.fromtimestamp()` for it and catch the possible exception.