I need to make sure that in my client application the user doesn't dramatically change the machine date (e.g. bringing it to 1 month before).
To the best of my knowledge, the best way to check the current time in Java is
System.currentTimeInMillis()
How can I make sure that this is the correct date, in a multiplatform environment (either Windows, Linux, Mac, etc.)?
No connection to remote servers available, nor to the internet. Also, at startup time the time could be already tampered. I just need to check the time for internal biz logic purpose, not to set anything.