Java Minute Get getMinutes(Date date)

Here you can find the source of getMinutes(Date date)

Description

get Minutes

License

Apache License

Declaration

public static int getMinutes(Date date) 

Method Source Code

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

import java.util.*;

public class Main {
    public static int getMinutes(Date date) {
        GregorianCalendar calendar = (GregorianCalendar) GregorianCalendar.getInstance();
        long time = date.getTime();
        calendar.setTimeInMillis(time);/* w  w w. j  a  va  2  s .  c o m*/
        return calendar.get(calendar.MINUTE);
    }
}

Related

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