Here you can find the source of getMinutes(String time)
public static int getMinutes(String time)
//package com.java2s; //License from project: Open Source License public class Main { public static int getMinutes(String time) { String[] timeTmp = getTimeFromString(time); return Integer.parseInt(timeTmp[1]); }//w w w. jav a2 s . c o m private static String[] getTimeFromString(String time) { String[] tmp = time.split(" "); String[] time_tmp = tmp[4].split(":"); return time_tmp; } }