- var_dump: documentation ( source)
- strtotime: documentation ( source)
<?php
$mysql_timestamp = "2014-10-21 12:29:34";
$this_is_new = false;
if(strtotime($mysql_timestamp) > strtotime("-60 minutes")) {
$this_is_new = true;
}
var_dump($this_is_new);
echo strtotime($mysql_timestamp);
echo "\n";
echo strtotime("-60 minutes");