I have variable curTime, I want to get the current time of the form 1616572689, there are 2 familiar methods
val curTime: Long = Date().getTime()
or
val curTime = System.currentTimeMillis()
But here's the problem, if I change the time on the phone for example to 2007, then the value of the variable will be incorrect! It will show the year 2007. How do I make sure that the data is taken not from the system, but from the Internet? some site, for example https://timestamp.online/
Please help, couldn't find anything about this problem.