Here you can find the source of daysBetweenTime(long start, long end)
public static long daysBetweenTime(long start, long end)
//package com.java2s; /*//from ww w . j ava 2 s. c om * CommonUtil.java * * Copyright 2007 NHN Corp. All rights Reserved. * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static long daysBetweenTime(long start, long end) { if (start > end) { return -1; } long term = end - start; return term / (1000 * 60 * 60 * 24); } }