<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Some more possibilities:</p>
    <ol>
      <li>A four dimensional space created by 4 tags, each with a well
        known range of values:</li>
      <ol>
        <li><i>century</i>  values: (1700,1800,1900,2000)</li>
        <li><i>decade</i> values (00,10,20,30,40,50,60,70,80,90)</li>
        <li><i>year</i> values (0,1,2,3,4,5,6,7,8,9)</li>
        <li><i>month </i> values (1,2,3,4,5,6,7,8,9,10,11,12)<br>
          <br>
          Assigning all four to a photo places it within a month.<br>
          Assigning 1,2&2 places it within a year<br>
          Assigning 1&2 only places a photo with a decade<br>
          To search, specify the precision you want.  You may have to do
          a couple of queries to span multiple adjacent intervals, or
          you could add additional dimensions, e.g. quarter century.  <br>
          This is not exactly what you want, but would it be close
          enough?</li>
      </ol>
      <li>Another approach, conceptually similar to the above, but maybe
        easier to use:</li>
      <ol>
        <li>By convention, a photo is placed within a month, year,
          decade and century as above.  This is encoded in a dedicated
          tag e.g. <i>approximateDate</i>.  Assume a date format
          <YYYYMMDD>.   You would assign values to this tag
          expressing as much as you know about the date to the photo,
          e.g. <18??????> or <181?????> or
          <190212??>.  You would search by looking for values
          which contain "<1810", or "<194506".  The "<" and
          ">" prevent confusing 18 hundreds with 18th of the month.<br>
          An advantage of this approach is that the assigned tag could
          contain multiple values, e.g. "<194506,<194507" for a
          photo which is believed to have been taken in June or July of
          1945.</li>
      </ol>
      <li>Write SQL queries outside of digikam, and use the results to
        find the specific photos in digikam.  That would be the most
        powerful approach, but would not be a purely digikam solution.</li>
    </ol>
    <div class="moz-cite-prefix">On 1/24/2026 10:25 AM, Hanspeter Halle
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e5340c86-2d28-4e6d-90f4-536801863adc@t-online.de">Hello,
      <br>
      <br>
      we want to used digikam for an archive of historical photos. For
      these an exact date can seldomly be given, only a time range can
      be guessed. It would be great, if this range A) could be specified
      in a compatible way and B) could be taken into account in
      searches. For example when searching for photos between 1950 and
      1959 we would like to find those with a time range of 1945-1955
      and those with 1958-1962. Has anybody a solution for this?
      <br>
      <br>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
George Koulomzin
7 Bridge Hill Lane, 
PO Box 781
Bridgehampton, NY, 11932
(m) 914-393-6179
(h) 631-537-4956
<a class="moz-txt-link-abbreviated" href="mailto:George@Koulomzin.com">George@Koulomzin.com</a></pre>
  </body>
</html>