I code for living
© 2010 - 2023
To get a proper Unix epoch time on Android you should divide the current time by 1000 since Android will return the epoch in milliseconds
System.currentTimeMillis() / 1000
The method name also hints about this ;)