Wrong Return Value in DC_TimeToSec

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Wrong Return Value in DC_TimeToSec

#1 Post 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 !
;)
best regards
Hans

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Wrong Return Value in DC_TimeToSec

#2 Post by rdonnay »

Wow! I guess nobody ever used that function.

It was probably written 0ver 25 years ago.

Thanks.
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Wrong Return Value in DC_TimeToSec

#3 Post by bwolfsohn »

I always used the regular timetosec() from xbtools
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply