<?php
$formattedTime = intval(date("Hi", 1429243145));
$curfew = intval(date("Hi", strtotime('20:00')));
//'H' will get the hour of the time from 0-23, intval will convert that to an integer
if($formattedTime > $curfew) {
echo "You are past the curfew time";
} else {
echo "Success";
}
echo "\n$formattedTime:$curfew";