Java Minute Get getMinute(Date date1, Date date2)

Here you can find the source of getMinute(Date date1, Date date2)

Description

get Minute

License

Open Source License

Declaration

public static final int getMinute(Date date1, Date date2) 

Method Source Code

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

import java.util.*;

public class Main {
    public static final int getMinute(Date date1, Date date2) {
        Long days = date1.getTime() - date2.getTime();
        return (int) (days / 1000 / 60);
    }// w  w  w  .  j  a  va2  s.  co  m
}

Related

  1. getMinute()
  2. getMinute()
  3. getMinute(Date date)
  4. getMinute(Date date)
  5. getMinute(Date date)
  6. getMinute(long mills)
  7. getMinute(long time)
  8. getMinute(String time)
  9. getMinuteAfter(Date date, int minute)