我不确定它在这里是否有用,但Joda Time似乎有一些使用Period的详细解决方案,例如
Period p = new Period(startDate, endDate)
int minutes = p.getMinutes(); //returns the left over minutes part
int seconds = p.getSeconds(); //returns the seconds part
Run Code Online (Sandbox Code Playgroud)
我不确定对于这个特殊情况你需要的东西比你拥有的还要多,我同意aix的观点
| 归档时间: |
|
| 查看次数: |
434 次 |
| 最近记录: |