Java Date Difference diffMillis(Date d1, Date d2)

Here you can find the source of diffMillis(Date d1, Date d2)

Description

diff Millis

License

Apache License

Declaration

public static long diffMillis(Date d1, Date d2) 

Method Source Code

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

import java.util.*;

public class Main {

    public static long diffMillis(Date d1, Date d2) {
        return d1.getTime() - d2.getTime();
    }//www.  ja v a  2s.c o m
}

Related

  1. DifferenceInSeconds(Date date1, Date date2)
  2. differenceMonth(Date date1, Date date2)
  3. differenceOnMonth(Date date1, Date date2)
  4. differenceOnYear(Date date1, Date date2)
  5. diffIntoMilliSecond(java.util.Date date, java.util.Date date1)
  6. diffMonth(Date before, Date after)
  7. diffMonth(Date start, Date end)
  8. diffOfDate(String begin, String end)
  9. diffY(Date endDate, Date startDate)