List of utility methods to do Calendar Second
boolean | isFirstAfterSecond(Calendar first, Calendar second) is First After Second long firstValue = first.getTimeInMillis(); long secondValue = second.getTimeInMillis(); return (firstValue > secondValue) ? true : false; |
boolean | isSameSecond(Calendar c1, Calendar c2) is Same Second return isSameInField(SECOND, c1, c2);
|
void | moveToCalendarSecondJustFor(Calendar cal, int second) move To Calendar Second Just For moveToCalendarSecond(cal, second); moveToCalendarSecondJust(cal); |
void | moveToCalendarSecondTerminal(Calendar cal) move To Calendar Second Terminal moveToCalendarMillisecond(cal, cal.getActualMaximum(Calendar.MILLISECOND)); |
void | moveToCalendarSecondTerminalFor(Calendar cal, int second) move To Calendar Second Terminal For moveToCalendarSecondJustFor(cal, second); moveToCalendarSecondTerminal(cal); |
Calendar | resetSeconds(Calendar cal) Resets the seconds part of the date to 0 if (cal != null) { cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal; |
void | secondFloor(Calendar calendar) second Floor calendar.set(Calendar.MILLISECOND, 0); |