code: protected void prepareTimeRangeCondition(
          CmsUUID projectId,
          long startTime,
          long endTime,
          StringBuffer conditions,
          List<Object> params) {
  
          if (startTime > 0L) {
              // READ_IGNORE_TIME: if NOT set, add condition to match last modified date against startTime
              conditions.append(BEGIN_INCLUDE_CONDITION);
              conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_DATE_LASTMODIFIED_AFTER"));
              conditions.append(END_CONDITION);
              params.add(new Long(startTime));
          }
  
          if (endTime > 0L) {
              // READ_IGNORE_TIME: if NOT set, add condition to match last modified date against endTime
              conditions.append(BEGIN_INCLUDE_CONDITION);
              conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_DATE_LASTMODIFIED_BEFORE"));
              conditions.append(END_CONDITION);
              params.add(new Long(endTime));
          }
      }
docs: Appends the appropriate selection criteria related with the date of the last modification.<p>
  
  @param projectId the id of the project of the resources
  @param startTime start of the time range
  @param endTime end of the time range
  @param conditions buffer to append the selection criteria
  @param params list to append the selection parameters