Convert Unix timestamp into a date and time
This online tool converts a Unix timestamp into a meaningful date and time.
The Unix timestamp is the time measured in seconds since the Unix Epoch (January 1 1970 00:00:00 GMT), not counting leap seconds.
The current Unix Epoch time is
Epoch means reference date.
To convert the Java System.currentTimeMillis() into a date and time you must divide System.currentTimeMillis() by 1000 to convert the time in seconds, which equals the Unix timestamp.
Thus: Unix timestamp = System.currentTimeMillis() / 1000