Here you can find the source of diffMillis(Date d1, Date d2)
public static long diffMillis(Date d1, Date d2)
//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 }