|
From: Camden S. <ca...@ar...> - 2000-11-11 19:57:46
|
Here's an example of the code we could use to determine the time elapsed = between start and end times: <?=20 $date1=3Dmktime($hour1,$minute1,$second1,$month1,$day1,$year1);=20 $date2=3Dmktime($hour2,$minute2,$second2,$month2,$day2,$year2);=20 $diff_in_secs=3D$date2 - $date1;=20 $diff_in_minutes=3D$diff_in_secs / 1440;=20 // This is the num_hours that gets inserted into job_details: $num_hours =3D $diff_in_minutes; ?> ____________________________ Camden Spiller |