Java tutorial
public class Main { public static void main(String[] argv) { System.out.println(daysToMillis(1)); } public static long daysToMillis(long days) { long daysInMillis = days * 24L * 60L * 60000L; return daysInMillis; } }