Java tutorial
//package com.java2s; public class Main { public static int timeString2TimeInt(String timeString) { int msc = Integer.parseInt(timeString.substring(9)) * 10; int sec = Integer.parseInt(timeString.substring(5, 7)); int min = Integer.parseInt(timeString.substring(2, 4)); int hour = Integer.parseInt(timeString.substring(0, 1)); int totalMsec = msc + sec * 1000 + min * 60000 + hour * 3600000; return totalMsec; } }