CountTime report function

Applicable version : 2.35 and later

Summary :
Calculates the exact time that the employee was clocked IN or OUT between two times. No error checking is done, and no rules are applied. This is simply just a sum of the time that the employee was IN or OUT.

Requirements :  
Must have at least version 2.35 installed.

CountClockings:
Parameters
: Employee number, In-Date, Out-Date, In-Time, Out-Time, Options.

Date parameters are in Clarion standard date format (ie days since 1800)

Time parameters are in hundredths of a second since midnight.

Options is made up of 3 characters where :

Character 1 can be

I : Time IN is calculated

O : Time OUT is calculated

 
Character 2 can be:

M : Only Manual clockings are used

B : Only Bulk clockings are used

C : Only Electronic clockings are used

<space> : All types of clockings are used

Character 3 can be:

P : Only TNA (Pay) Clockings are used

A : Only Access clockings are used

T : Both Pay and Access clockings are used

<space> : Same as for T

 

Example

   CountTime(Emp:Empnumber,Dai:Date,0,Dai:date,8640000,=I P=)