📜  java long to hours 分秒 - Java 代码示例

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

代码示例1
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date(millis));

//And then....
calendar.get(Calendar.HOUR_OF_DAY) //use Calendar.HOUR for AM format
calendar.get(Calendar.MINUTE)
calendar.get(Calendar.SECOND)