sources/TimeValidator.php
private function checktime(int $hour, int $minute, int $second)
    {
        if ($hour < 0 || $hour > 23) {
            return false;
        } elseif ($minute < 0 || $minute > 59) {
            return false;
        } elseif ($second < 0 || $second > 59) {
            return false;
        }

        return true;
    }
private function checktime(int $hour, int $minute, int $second)
    {
        if ($hour < 0 || $hour > 23) {
            return false;
        } elseif ($minute < 0 || $minute > 59) {
            return false;
        } elseif ($second < 0 || $second > 59) {
            return false;
        }

        return true;
    }
private function checktime ( int $ hour , int $ minute , int $ second ) { if ( $ hour < 0 || $ hour > 23 ) { return false ; } elseif ( $ minute < 0 || $ minute > 59 ) { return false ; } elseif ( $ second < 0 || $ second > 59 ) { return false ; } return true ; }
Checks whether the passed time is a valid time.

@param int $hour
The hour.
@param int $minute
The minute.
@param int $second
The second.
@return bool Returns 'true' if the passed time is a valid time, otherwise 'false' will be returned.
Checks whether the passed time is a valid time .