- Output for 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- is it too soon?bool(false) is it too late?bool(false)
<?php
function isCheckInTooSoon($lowerLimit)
{
//$currentHours = $this->get('TimeService')->getCurrentHour();
$currentHours = date('Hi');
return $currentHours < $lowerLimit;
}
function isCheckInAfterCheckOutLimit($upperLimit)
{
//$currentHours = $this->get('TimeService')->getCurrentHour();
$currentHours = date('Hi');
return $currentHours > $upperLimit;
}
print_r('is it too soon?');
var_dump(isCheckInTooSoon('0815'));
print_r('is it too late?');
var_dump(isCheckInAfterCheckOutLimit('2000'));