|
|
@@ -109,11 +109,12 @@ public class DateTimeUtils {
|
|
|
if(Objects.isNull(begin) || Objects.isNull(end)) {
|
|
|
throw new IllegalArgumentException();
|
|
|
}
|
|
|
- if(begin.isAfter(end)) {
|
|
|
- return Duration.of(24, ChronoUnit.HOURS).minus(Duration.between(end, begin));
|
|
|
- } else {
|
|
|
- return Duration.between(end, begin);
|
|
|
- }
|
|
|
+// if(begin.isAfter(end)) {
|
|
|
+// return Duration.of(24, ChronoUnit.HOURS).minus(Duration.between(end, begin));
|
|
|
+// } else {
|
|
|
+// return Duration.between(end, begin);
|
|
|
+// }
|
|
|
+ throw new UnsupportedOperationException();
|
|
|
}
|
|
|
|
|
|
}
|