Is there more the right way to compare between present date and a deadline?

```
date_default_timezone_set('Asia/Jakarta');
$deadline = date('2016-04-26 23:59:59');
$deadline = strtotime($deadline);
$now = strtotime("now");

if ($now > $deadline) {
    echo 'Deadline has passed.';
} elseif ($now === $deadline) {
    echo 'The same time.';
} else {
    echo 'You have time';
}

```