/** * This checks if the array with hours and minutes, days, months and years elements is a valid datetime or not. * * @param $val The value to test. * @param $opts (not required) */ function datetime($val, $opts = '') { return YDValidateRules::date($val) && YDValidateRules::time($val); }
/** * This checks if the array with hours and minutes, days, months and years elements is a valid datetime or not. * * @param $val The value to test. * @param $opts (not required) * * @deprecated The date rule should be used instead. */ function datetime($val, $opts = array()) { return YDValidateRules::date($val, $opts); }