我尝试计算一个带有时间的列表。但是使用 Joda Time 中的 LocalTime 我只能得到 24 小时。
使用什么正确的类来获取例如34小时20分14秒?
提前致谢
最佳答案
您可能正在寻找Period :
A period in Joda-Time represents a period of time defined in terms of fields, for example, 3 years 5 months 2 days and 7 hours. This differs from a duration in that it is inexact in terms of milliseconds. A period can only be resolved to an exact number of milliseconds by specifying the instant (including chronology and time zone) it is relative to.
关于java - 添加次数,计算总时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9295396/