You can take example of this JGit test class RevWalkFilterTest.java
:
Date since = getClock();
Date until = getClock();
RevFilter between = CommitTimeRevFilter.between(since, until);
It uses the class org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter
.