Java convert an int into hours and minutes

java, time

Solution

int mins = yourint % 100;
int hours = yourint / 100;  
long timeInMillis = mins * 60000L + hours * 360000L; 

Problem

I have two ints 1530 and 830 which is supposed to represent 15:30 and 8:30 in time. What is the best way to convert this number into milliseconds? I was thinking of converting them into strings and sub strings but this seems like a very inefficient approach.

Original source