Java Time Since Format differenceNumberOfDays(long lodTime, long currentTime)

Here you can find the source of differenceNumberOfDays(long lodTime, long currentTime)

Description

difference Number Of Days

License

Apache License

Declaration

public static int differenceNumberOfDays(long lodTime, long currentTime) 

Method Source Code

//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*/
}

Related

  1. timeSince()
  2. timeSince(long lastTimeInMillis)
  3. timeSince(long t)
  4. timeSince(long timestart)