Here you can find the source of getDays(final long ms)
public static long getDays(final long ms)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.TimeUnit; public class Main { public static long getDays(final long ms) { return TimeUnit.MILLISECONDS.toDays(ms); }/*from w w w. j a v a 2 s . c o m*/ }