Android Date Interval Get minuteBetweenDate(Date date1, Date date2)

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

Description

minute Between Date

Declaration

public static long minuteBetweenDate(Date date1, Date date2) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {
    public static long minuteBetweenDate(Date date1, Date date2) {
        long d = date1.getTime() - date2.getTime();
        return d / 60000;
    }// w  ww . j  a v  a 2 s . c  o m
}

Related

  1. getIntervalMinutes(Date minDate, Date maxDate)
  2. getIntervalYears(Date date1, Date date2)
  3. hoursBetweenDate(Date date1, Date date2)
  4. millisecondsBetween(Date dt1, Date dt2)
  5. millisecondsBetween(Date dt1, Date dt2)
  6. minutesBetween(Date dt1, Date dt2)
  7. minutesBetween(Date dt1, Date dt2)
  8. offsetMinute(Date date, int offset)
  9. offsetSecond(Date date, int offset)