Answers for "How to convert timestamp to time in android studio"

0

How to convert timestamp to time in android studio

//Timestamp to HH:mm:ss format
Long Timestamp = 1633304782;
Date timeD = new Date(Timestamp * 1000);
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");

String Time = sdf.format(timeD);

//RESULT this code convert 1633304782 to 05:46:33
Posted by: Guest on October-04-2021

Code answers related to "How to convert timestamp to time in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language