Home > General, Java > How To Get The Current Epoch Time (Unix Timestamp)

How To Get The Current Epoch Time (Unix Timestamp)

June 6, 2011

long epoch = System.currentTimeMillis()/1000;

 

Reference:http://shafiqissani.wordpress.com/2010/09/30/how-to-get-the-current-epoch-time-unix-timestamp/

Advertisements
Categories: General, Java
%d bloggers like this: