ShawnCoutts
Programmer
Just so that everyone knows, i am not using Cbuilder for this. My IDE does not have date/timediff functionality.
I am having some difficulty determining how to get the difference between 2 times. The times are stored as hex values. When I treat the times normally, as integers, and convert them into seconds, I get one value. When I convert the times from hex to integer and then convert them into seconds, I get an entirely different value.
My two test values that I am using are:
8:42:25 and 9:25:12. (these are on a 24 hour clock)
and my two values from each equation are:
2567s and 1841s
the correct value is 2567s
TIA
Shawn
I am having some difficulty determining how to get the difference between 2 times. The times are stored as hex values. When I treat the times normally, as integers, and convert them into seconds, I get one value. When I convert the times from hex to integer and then convert them into seconds, I get an entirely different value.
My two test values that I am using are:
8:42:25 and 9:25:12. (these are on a 24 hour clock)
and my two values from each equation are:
2567s and 1841s
the correct value is 2567s
TIA
Shawn