我目前有一个pandas dataframe,其中每一行都有一个日期范围,我想计算这个范围内符合某些条件的天数: Item | Date Start | Date EndA | 02/01/2019 | 03/02/2019
B | 04/02/2019 | 08/02/2019 例如:2019年1月-2019年的天数或2019年<
我正在计算2 localDates之间的天数问题是,这个问题使用的是dateTime,我认为它已经过时了,因此使用localDate的原因。是否有人知道使用localDate来实现上述答案中的算法的类似方法。ChoronoUnit.DAYS.between(LD1, LD2.plusDays(1)) //include the final day in the c