Hi all i am trying to store android current timestamp value in a string variable without losing its precision but i am losing last 3 digits when i try to print timeStamps value. Actually its having 13 digits but only 10 digits getting printed.
String timeStamp = String.valueOf(TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()));
I got the above snippet from this answer I am in the process to get the recently updated contacts based on CONTACT_LAST_UPDATED_TIMESTAMP
for which precision seems important.Please guide me