Diff between 2 dates #1684
SShahmuradli
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi there. You can use the function public List<Pac> findbydiff() {
return persistence.createCriteriaBuilder(Pac.class)
.where("minute_diff(sc.secondField,sc.firstField)").gt(30)
.getResultList();
} Also see https://persistence.blazebit.com/documentation/1.6/core/manual/en_US/#temporal-diff-functions |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
how to find all data where the difference between two fields is more than 30 minutes?
firstField and secondField are LocalDateTime
Beta Was this translation helpful? Give feedback.
All reactions