Java Minute calMinutes(Date date1, Date date2)

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

Description

cal Minutes

License

Open Source License

Declaration

public static int calMinutes(Date date1, Date date2) throws Exception 

Method Source Code

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

import java.util.*;

public class Main {

    public static int calMinutes(Date date1, Date date2) throws Exception {
        int times = 0;
        times = (int) ((date1.getTime() - date2.getTime()) / (60 * 1000));
        return times;
    }/* w  w  w  .  j a v  a 2s  .c  om*/
}

Related

  1. addMinutesToMjd(double mjd, double minutes)
  2. buildDelayParamForMinutes(final int delayInMinutes)
  3. calculateRuntimeMinutes(long startTime, long endTime)
  4. countMinute(Long time)
  5. elapsedMinutes(int beginTimeInMinutes, int endTimeInMinutes)
  6. extractMinutes(String[] parts)
  7. floorTimestamp(Date ts, int windowMinutes)