Java Day From daysBetweenTime(long start, long end)

Here you can find the source of daysBetweenTime(long start, long end)

Description

days Between Time

License

Open Source License

Declaration

public static long daysBetweenTime(long start, long end) 

Method Source Code

//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);
    }
}

Related

  1. days(int month, int year)
  2. days(int num)
  3. days(int year, int month)
  4. daysAfter(Date earlierDate, Date laterDate)
  5. daysAndHours(int hours)
  6. daysInFebruary(int year)
  7. daysInMonthForYear(int commonMonthIndex, int yearInteger)
  8. daysOfTwo(Date date1, Date date2)
  9. daysSince(Date since)