Created
November 5, 2011 16:14
-
-
Save 0xRoch/1341710 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Calendar cal = new GregorianCalendar(); | |
cal.setTime(new Date()); | |
cal.add(Calendar.DAY_OF_YEAR,-1); | |
Date oneDayBefore= cal.getTime(); | |
List<User> users = all().filter("lastSeen>", oneDayBefore).fetch(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment