Android Get Current timestamp?

The solution is :

Long tsLong = System.currentTimeMillis()/1000;
String ts = tsLong.toString();

Leave a Comment