|
@@ -17,6 +17,7 @@ import org.springblade.manager.dto.ParamElements;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
|
+import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
@@ -914,8 +915,8 @@ public class CustomFunction {
|
|
return timePassed(t1, t2, "D", 0, "yyyy-MM-dd");
|
|
return timePassed(t1, t2, "D", 0, "yyyy-MM-dd");
|
|
}
|
|
}
|
|
|
|
|
|
-/* public static void main(String[] args) {
|
|
|
|
- LocalDateTime ldt1= LocalDateTime.now();
|
|
|
|
|
|
+ /* public static void main(String[] args) {
|
|
|
|
+ *//* LocalDateTime ldt1= LocalDateTime.now();
|
|
LocalDateTime ldt2=ldt1.minusDays(-1);
|
|
LocalDateTime ldt2=ldt1.minusDays(-1);
|
|
LocalDateTime ldt3=ldt1.minusDays(120L);
|
|
LocalDateTime ldt3=ldt1.minusDays(120L);
|
|
System.out.println(daysPassed(ldt2,ldt1));
|
|
System.out.println(daysPassed(ldt2,ldt1));
|
|
@@ -923,7 +924,10 @@ public class CustomFunction {
|
|
System.out.println(hoursPassed(ldt2,ldt1));
|
|
System.out.println(hoursPassed(ldt2,ldt1));
|
|
System.out.println(hoursPassed(ldt3,ldt1));
|
|
System.out.println(hoursPassed(ldt3,ldt1));
|
|
System.out.println(minutesPassed(ldt2,ldt1));
|
|
System.out.println(minutesPassed(ldt2,ldt1));
|
|
- System.out.println(minutesPassed(ldt3,ldt1));
|
|
|
|
|
|
+ System.out.println(minutesPassed(ldt3,ldt1));*//*
|
|
|
|
+ *//* LocalDate t1 = LocalDate.of(2023, 1, 1);
|
|
|
|
+ LocalDate t2 = LocalDate.of(2023, 1, 1);t2=t2.plusDays(1);
|
|
|
|
+ System.out.println(timePassed(t1, t2, "D", 0, "yyyy-MM-dd"));*//*
|
|
}*/
|
|
}*/
|
|
|
|
|
|
public static Object hoursPassed(Object t1, Object t2) {
|
|
public static Object hoursPassed(Object t1, Object t2) {
|