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
In PHP for checking if a timestamp represents a valid Gregorian date this worked for me:
function checkdateTimestamp($timestamp) { return checkdate((int)date('m',$timestamp),(int)date('d',$timestamp),(int)date('Y',$timestamp)); }