= CONFIGHARD_DATEFUNC_MAXYEAR)) return; //Confine month. if (($month_int < 1) || ($month_int > 12)) return; //Figure out how many days are supposed to be in that month, anyway. $ndays = DATEFUNC_year_month_days($year_int, $month_int); //Confine days. if (($day_int < 1) || ($day_int > $ndays)) return; //We have a confirmed good date. Return the info. $valid = 1; $components[0] = $year_int; $components[1] = $month_int; $components[2] = $day_int; } // //-------------------------------------------------------------------------------------------------------------- // //Makes a DT8 from components of integer year, integer month, and integer day. // function DT8_make_from_ints($year, $month, $day) { return(sprintf("%04d", $year) . sprintf("%02d", $month) . sprintf("%02d", $day)); } // //-------------------------------------------------------------------------------------------------------------- //End of $RCSfile: dt8.inc,v $. //-------------------------------------------------------------------------------------------------------------- ?>