Here you can find the source of getAllDaysCount(final long milliseconds)
public static long getAllDaysCount(final long milliseconds)
//package com.java2s; //License from project: Apache License import java.util.concurrent.TimeUnit; public class Main { public static final long DATE = TimeUnit.DAYS.toMillis(1); public static long getAllDaysCount(final long milliseconds) { return milliseconds / DATE; }// www . j av a 2s. c o m }