String callTime = secondsToDisplayableString(log.getCallDuration());
String callDate = String.valueOf(log.getTimestamp());
private String secondsToDisplayableString(int secs) {
SimpleDateFormat data = new SimpleDateFormat("HH:mm:ss");
Calendar cal = Calendar.getInstance();
cal.set(0, 0, 0, 0, 0, secs);
return data.format(cal.getTime());
}`
我的输出在sec
.我想转换成.我的hh.mm.ss
代码正在使用.timestamp date and time
请告诉我如何转换