import hirondelle.date4j.DateTime; public class DateExample { public static void main(String[] args) { DateTime now = DateTime.now(); System.out.println("Current DateTime: " + now); DateTime tomorrow = now.plusDays(1); int daysDiff = now.numDaysFrom(tomorrow); System.out.println("Days Difference: " + daysDiff); } }


上一篇:
下一篇:
切换中文