Marco,
I found other function in time.prg of clipper :
#include "FiveWin.ch"
Function test()
nEntrata1:="07:57"
nUscita1:="14:25"
nEntrata2:="15:57"
nUscita2:="16:41"
nEntrata3:="17:10"
nUscita3:="19:43"
Totale1:=TDIFF(nEntrata1, nUscita1)
Totale2:=TDIFF(nEntrata2, nUscita2)
Totale3:=TDIFF(nEntrata3, nUscita3)
Totale_Sec:=TTOS( Totale1 )+TTOS( Totale2 )+TTOS( Totale3 )
Totale:=STOT( Totale_Sec)
TotaleWork:= "06:00"
Tot_gen:= Totale_Sec-TTOS(TotaleWork)
MsgInfo("Mattina :"+totale1+" +"+CRLF+;
"Pomeriggio :"+totale2+" +"+CRLF+;
"Sera :"+totale3+" +"+CRLF+;
"Totale ore :"+Totale+" -"+CRLF+;
"Ore Lavoro :"+TotaleWork+CRLF+;
"Totale ore :"+STOT( Tot_gen))
retu NIL
Now My problem is to calculate the flexibility negative and positive
sample :
Entrata1:="07:57"
Uscita1 :="13:58"
Total = 05:58 ( I calc from 08:00 to 14:00)
the employe made not six Hours of Work and it is a FLNEG of 2 minutes
Entrata1:="07:57"
Uscita1 :="14:25"
Total = 06:25 ( I calc from 08:00 to 14:00)
the employe made over six Hours of Work and it is a FLPOS of 25 minutes
How i can make to calculate FLNEG and FLPOS with a function ?