Java Minute Get getMinutes()

Here you can find the source of getMinutes()

Description

get Minutes

License

LGPL

Declaration

public static int getMinutes() 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.*;

public class Main {
    /**//from  w w w  .  j  a  v a 2  s . c om
     * Minute=12 *
     */
    public static final int MINUTE = Calendar.MINUTE;

    public static int getMinutes() {
        Calendar calendar = Calendar.getInstance();
        return calendar.get(Calendar.MINUTE);
    }

    public static int getMinutes(final Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        return calendar.get(Calendar.MINUTE);
    }
}

Related

  1. getMinuteInt(long time)
  2. getMinuten(boolean mitBlank)
  3. getMinuteOfDay(Date date)
  4. getMinuteOfHour(String dateKey)
  5. getMinutePeriod(int time, int period)
  6. getMinutes(Date date)
  7. getMinutes(double seconds)
  8. getMinutes(double t)
  9. getMinutes(final double DEC_DEG)