How do i subtract two times which are in two different dates, say 23:20:45 of 2019/07/24 and 00:10:32 of 2019/07/25. It should return me the difference between those two hours:minutes:seconds.
I have to note the duration of people which log into the system at night, but as the date changes it's a bit difficult to do so I need some code in java which will return me the exact time in hours:minutes:seconds.