Java Date to Minute getMins(Date date)

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

Description

get Mins

License

Apache License

Declaration

public static int getMins(Date date) 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static int getMins(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);//  w  w w. j  a  va 2  s .  co m
        return c.get(Calendar.MINUTE);
    }
}

Related

  1. getMinDateOfDay(Date date)
  2. getMinHour(Date date)
  3. getMinTime(Date date)
  4. getMinus1Day(Date date)
  5. getMinute(Date d)
  6. getMinute(Date d)