📌  相关文章
📜  如何在 android studio 中将时间戳转换为时间 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:11.712000             🧑  作者: Mango

代码示例1
//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