Having a look on the PHP documentation, the following two methods of the DateTime object would both seem to solve my problem:
DateTime
As of PHP 7.x, you can use the following:
$aDate = new \DateTime('@'.(time())); $bDate = new \DateTime('@'.(time() - 3600)); $aDate <=> $bDate; // => 1, `$aDate` is newer than `$bDate`