StefanHaupt wrote:nOrePresenza:= (nSecTeoriche-nSecFlNeg) /60/60
nMin := Int ( nOrePresenza *60/100)
cHour := Str ( Int(nOrePresenza), Lennum (Int(nOrePresenza)) )
cMin := StrZero (nMin,2))
cTime := cHour+":"+cMin
gives you 148:58
strange give me 148:89
see it please
dDate:= "01/09/2012"
nGiornimese:= nDaysMonth( dDate )
nDomenicheMese:=GetSundays( nMese, val(nAnno) ) give me the number od sundays on a mounth
nOreToriche :=(nGiornimese*6)-(nDomenicheMese*6) give me 150
nSecTeoriche:=( nOreToriche*60)*60
nOrePresenza:= (nSecTeoriche-nSecFlNeg) /60/60
nMinPresenza := Int ( nOrePresenza *60/100)
cHourPresenza := Str ( Int(nOrePresenza), Lennum (Int(nOrePresenza)) )
cMinPresenza := StrZero (nMinPresenza,2) give me 89 cTimePresenza := cHourPresenza+":"+cMinPresenza
give me 148:89
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com