I have a simple problem, I have time in double format. i.e. 1.20 hours 2.30 hours 3.40 hours.
I want to add them as time clocks, not as floating numbers, that is, to base 60. for example
1.20 + 2.30 + 3.40 = 7.30 hours (correct)
1.20 + 2.30 + 3.40 = 6.90 (incorrect)
I want this in both SQL and C #, I am currently using custom functions on both sides. I want to know the easiest way to do this.
If I store it in the wrong format, please tell me how to do it correctly, basically I get the difference between the two dates as a floating point number.
We welcome all possible solutions.
source
share