I have a string and I need to find out whether it is a unix timestamp or not, how can I do that effectively?
I found this thread via Google, but it doesn\'t come up
or
if ($startDate < strtotime('-30 years') || $startDate > strtotime('+30 years')) { //throw exception }