I need to figure out how to store times like 12:45, 13:45
etc.. so in format of HH:MM
It is NOT NECESSARY to use date functionality in java, these will not be used to time an event or anything of that matter, all I need them for is to perform operations like 13:45 - 12:45
and get output which in this case is 01:00
I tried doing this with doubles, however ran into issue of something like 13.45 + 00.35 = 13.80;
as there are only 60 minutes in a hour, expected output should be 14.20
I'm trying to figure out how to do this with date as well, but remember at the moment I do not need to be concerned about things like time zones, calendar dates etc.. I need to figure out how to make numbers behave like hours and minutes.
Sorry if this is confusing.