Page 1 of 1

Wrong Return Value in DC_TimeToSec

Posted: Sat Feb 06, 2021 11:41 am
by hz_scotty
Hi Roger!
I have found a wrong return value in Function DC_TimeToSec() in _dccalen.prg

was: wrong!
RETURN (nHours * 60 * 24) + (nMinutes * 60) + nSeconds

is: right!
RETURN (nHours * 60 * 60) + (nMinutes * 60) + nSeconds

please edit for the future !
;)

Re: Wrong Return Value in DC_TimeToSec

Posted: Sat Feb 06, 2021 12:13 pm
by rdonnay
Wow! I guess nobody ever used that function.

It was probably written 0ver 25 years ago.

Thanks.

Re: Wrong Return Value in DC_TimeToSec

Posted: Sat Feb 06, 2021 1:15 pm
by bwolfsohn
I always used the regular timetosec() from xbtools