I'm currently trying to subtract two military times to get the number of hours someone has been doing work.
My code looks like this:
java.sql.Time insertTime= java.sql.Time.valueOf(timeIn);
java.sql.Time timeOut= java.sql.Time.valueOf(timeOut);
When I go to the methods, getHour(), its deprecated, and its not the true since of an hour. So how do I convert the sql.Time object into longs so I can subtract them and then convert them back to number of hours?