I am trying to calculate the time of 100 days from now using the following:
import java.util.Date;
public class Main
{
public static void main(String[] args) {
System.out.println("Hello World");
System.out.println(new Date(System.currentTimeMillis() + 8640000 * 1000));
}
}
It gives me back Jan 04 08:57:25 UTC 2021
which is not correct. How should I remedy this?