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 1732170238
Note 1:
Epoch means reference date.
Note 2:
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
Convert Unix timestamp into date and time:
|
Convert date and time into Unix timestamp:
|
|