Java Minute Get getMinute()

Here you can find the source of getMinute()

Description

get Minute

License

Open Source License

Declaration

public static String getMinute() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getMinute() {
        Date currentTime = new Date();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String dateString = formatter.format(currentTime);
        String min;/*  w w w.j  a  v  a2s  .  co  m*/
        min = dateString.substring(14, 16);
        return min;
    }
}

Related

  1. getMineType(String urlFile)
  2. getMininte(Date time)
  3. getMiniTime()
  4. getMinute()
  5. getMinute()
  6. getMinute(Date date)
  7. getMinute(Date date)
  8. getMinute(Date date)
  9. getMinute(Date date1, Date date2)