I am looking to calculate the number of minutes given the time of the day.
Eg.: when input is 11:34, the output should be 11*60+34. The date doesn't matter.
I only need it down to the minutes scale. Seconds, milliseconds... don't matter. Is there a method somewhere in Java doing this the neat way without me calculating it?
Right now, i'm using theTime.split(":")
, theTime
is a String
holding "11:34" here, parsing the integers on each side and doing the calculation.
I saw Time
but what I'm doing right now seemed more direct.
Nothing in Systems
either.