C
collinm
hi
return me
return me
now i would like to have duration between us....
that return me
stop run: -3205 1118428263 1118431468
why prod->timeStartRun (14:31:03) is smaller then prod->timeEndRun
(14:24:28)?
thanks
Code:
parseDate(&prod->tmbEndRun, date_rtu);
parseTime(&prod->tmbEndRun, prod->htime_rtu_fin);
printf("end %s\n", prod->htime_rtu_fin);
return me
05/06/10
end 14:24:28
Code:
parseDate(&prod->tmbStartRun, date_rtu);
parseTime(&prod->tmbStartRun, hactual_time);
return me
05/06/10
start 14:31:03
now i would like to have duration between us....
Code:
prod->timeEndRun=mktime(&prod->tmbEndRun);
prod->timeStartRun=mktime(&prod->tmbStartRun);
prod->stopRun = difftime(prod->timeStartRun, prod->timeEndRun);
printf("stop run: %d %ld %ld\n",prod->stopRun, prod->timeStartRun,
prod->timeEndRun);
that return me
stop run: -3205 1118428263 1118431468
why prod->timeStartRun (14:31:03) is smaller then prod->timeEndRun
(14:24:28)?
thanks