dimanche 7 août 2016

Get the seconds number from timestamp

I can get the seconds from a time stamp with this command long timestamp = System.currentTimeMillis() / 1000; From this time stamp 1465731398013 I will get this result 1465731398. What I need is only the last number, 8 in this case.

Aucun commentaire:

Enregistrer un commentaire