Java Date to Minute getMinute(Date d)

Here you can find the source of getMinute(Date d)

Description

get Minute

License

Artistic License

Declaration

public static int getMinute(Date d) 

Method Source Code

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

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

public class Main {
    public static int getMinute(Date d) {
        return get(d, Calendar.MINUTE);
    }//from   w ww .j ava 2  s  .c o  m

    private static int get(Date d, int field) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(d);
        return cal.get(field);
    }
}

Related

  1. getMinDateOfDay(Date date)
  2. getMinHour(Date date)
  3. getMins(Date date)
  4. getMinTime(Date date)
  5. getMinus1Day(Date date)
  6. getMinute(Date d)
  7. getMinute(Date date)
  8. getMinute(Date date)
  9. getMinute(java.util.Date date)