我正在计算hh:mm:ss.SSS
格式的时差
DateTime dt1;
DateTime dt2;
Period period;
final DateTimeFormatter format = DateTimeFormat.forPattern("HH:mm:ss.SSS");
String endTime = "20:03:56.287";
String startTime = "19:59:27.322";
dt1 = format.parseDateTime(endTime);
dt2 = format.parseDateTime(startTime);
period = new Period(dt1,dt2);
System.out.println(period);
我得到PT-4M-28.965S
了如何将其转换为00:04:28.965