Java Minute Get getMinutes(String time)

Here you can find the source of getMinutes(String time)

Description

get Minutes

License

Open Source License

Declaration

public static int getMinutes(String time) 

Method Source Code

//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;
    }
}

Related

  1. getMinutes(double t)
  2. getMinutes(final double DEC_DEG)
  3. getMinutes(int minutes)
  4. getMinutes(long time)
  5. getMinutes(String hora)
  6. getMinutes(String time, int defaultValue)
  7. getMinutesDiff(long from, long to)
  8. getMinutesInSecWOHours(long sec)
  9. getMinutesOfTowDiffDate(String p_startDate, String p_endDate)