Java Minute Get getMinuteFromHMS(String hms)

Here you can find the source of getMinuteFromHMS(String hms)

Description

get Minute From HMS

License

Open Source License

Declaration

public static String getMinuteFromHMS(String hms) 

Method Source Code

//package com.java2s;

public class Main {
    public static final String DEFAULT_TIME_FORMAT = "HH:mm:ss";

    public static String getMinuteFromHMS(String hms) {

        if (hms == null || hms.length() != DEFAULT_TIME_FORMAT.length()) {
            return null;
        }/*from   w  ww . jav a  2  s . c  om*/

        return hms.substring(3, 5);
    }
}

Related

  1. getMinute(String time)
  2. getMinuteAfter(Date date, int minute)
  3. getMinuteAsInt(String hourString)
  4. getMinuteCa(Date d1, Date d2)
  5. getMinuteDate(String date, String formatFormat)
  6. getMinuteFromMilliSecond(int milliSecond)
  7. getMinuteFromTime(Long timeInMilliseconds)
  8. getMinuteInt(long time)
  9. getMinuten(boolean mitBlank)