The IMAP protocol defines Arrived search for dates only (not times). This is what RFC says (IMAP command for Arrived search is ON):
      ON <date>
         Messages whose internal date (disregarding time and timezone)
         is within the specified date.
I suggest you to invoke Arrived search and additionally filter the result by times required.