标签: java jodatime
使用Joda Time如何找到2个LocalTime对象之间的毫秒数?
LocalTime two = new LocalTime(2,0);
LocalTime six = new LocalTime(6,0)
那么凌晨2点到早上6点之间的毫秒数?
由于
答案 0 :(得分:6)
System.out.println(six.getMillisOfDay() - two.getMillisOfDay());