how to search files modified between a specific time in a date In mac os, how can I search the files modified or used within a specified timespan on a date?

For example i want to get the files used between 10am to 4pm on 10/30/2018. Can this be done either via finder or terminal?
A terminal based approach would use mdfind (the CLI Spotlight too).

Using mdls on a file you can see all the attributes available to you, something like kMDItemContentModificationDate looks like what you want.

So, the mdfind command would be something like

mdfind 'kMDItemContentModificationDate &lt; $time.iso(2018-10-30T16:00:00) &amp;&amp; kMDItemContentModificationDate &gt; $time.iso(2018-10-30T10:00:00)'


You can chain together any combination of the attributes returned from mdls.