local datetimevar clockIn;
local datetimevar clockOut;
local stringvar str;
str := {cktimhim.tlatim};
//cdatetime(yyyy,mm,dd,hh,mm,ss)
clockIn := cdatetime(left(str,4), mid(str,5,2), mid(str,7,2), mid(9,2), mid(11,2), mid(13,2));
str := {cktimhim.tlatom};
clockOut := cdatetime(left(str,4), mid(str,5,2), mid(str,7,2), mid(9,2), mid(11,2), mid(13,2));
now you should be able to script your logic. If you need to reference these value in the next record you can change the local to shared (don't forget to reset them if a group header when the user changes) or you can use the Next()/Previous() functions (again remember to check that they are for the same person).
HTH