Here you can find the source of differenceNumberOfDays(long lodTime, long currentTime)
public static int differenceNumberOfDays(long lodTime, long currentTime)
//package com.java2s; //License from project: Apache License public class Main { public static final long ONE_DAY_MS = 24 * 60 * 60 * 1000; public static int differenceNumberOfDays(long lodTime, long currentTime) { long cTime = currentTime - lodTime; Long dTime = cTime / ONE_DAY_MS; int eTime = dTime.intValue(); return eTime; }/*from w w w . java 2s. c o m*/ }