Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Joda Time 如何找到 2 个 LocalTime 对象之间的毫秒数?
本地时间二 = 新本地时间(2,0);
LocalTime 六 = 新 LocalTime(6,0)
那么凌晨 2 点到 6 点之间的毫秒数呢?
谢谢
System.out.println(six.getMillisOfDay() - two.getMillisOfDay());