Right now, I can get the hours between two LocalTime times like this:
public long getHours(){
return ChronoUnit.HOURS.between(this.timeIn, this.timeOut);
}
But the result is only the number of hours. What I want is to also include the minutes as well. So for example if 5 hours and 30 minutes passed the result to be 5.30.
EDIT: For example timeIn is 10:00:00 and time out is 15:30:00. I want the hours and minutes between these two times