private function checkValidity($day, $hour, $minute)
    {
        // convert as integers
        $day_int = intval($day);
        $hour_int = intval($hour);
        $minute_int = intval($minute);

        // check value range
        if ($day_int  < 1 || $day_int > 31) {
            return false;
        }
        if ($hour_int   > 23) {
            return false;
        }
        if ($minute_int > 59) {
            return false;
        }

        return true;
    }
private function checkValidity($day, $hour, $minute)
    {
        // convert as integers
        $day_int = intval($day);
        $hour_int = intval($hour);
        $minute_int = intval($minute);

        // check value range
        if ($day_int  < 1 || $day_int > 31) {
            return false;
        }
        if ($hour_int   > 23) {
            return false;
        }
        if ($minute_int > 59) {
            return false;
        }

        return true;
    }
private function checkValidity ( $ day , $ hour , $ minute ) { // convert as integers $ day_int = intval ( $ day ) ; $ hour_int = intval ( $ hour ) ; $ minute_int = intval ( $ minute ) ; // check value range if ( $ day_int < 1 || $ day_int > 31 ) { return false ; } if ( $ hour_int > 23 ) { return false ; } if ( $ minute_int > 59 ) { return false ; } return true ; }
Check the validity of the decoded information for date time.

@param string $day
@param string $hour
@param string $minute

@return bool true if valid, false if not
Check the validity of the decoded information for date time .