if (pos >= 0) {
number = NumberHelper.parseInteger(modificationSince.substring(pos + 1));
} else {
number = null;
}
final DateHolder dateHolder = new DateHolder(DatePrecision.MINUTE);
if ("lastMinute".equals(modificationSince) == true) {
dateHolder.add(Calendar.MINUTE, -1);
} else if (modificationSince.startsWith("lastMinutes:") == true) {
dateHolder.add(Calendar.MINUTE, -number);
} else if ("lastHour".equals(modificationSince) == true) {
dateHolder.add(Calendar.HOUR, -1);
} else if (modificationSince.startsWith("lastHours:") == true) {
dateHolder.add(Calendar.HOUR, -number);
} else if ("today".equals(modificationSince) == true) {
dateHolder.setBeginOfDay();
} else if ("sinceYesterday".equals(modificationSince) == true) {
dateHolder.add(Calendar.DAY_OF_YEAR, -1);
dateHolder.setBeginOfDay();
} else if (modificationSince.startsWith("lastDays") == true) {
dateHolder.add(Calendar.DAY_OF_YEAR, -number);
dateHolder.setBeginOfDay();
}
searchFilter.setStartTimeOfModification(dateHolder.getDate());
startDateTimePanel.markModelAsChanged();
searchFilter.setStopTimeOfModification(null);
stopDateTimePanel.markModelAsChanged();
modificationSince = null;
}