therube wrote: ↑Mon May 01, 2023 7:45 pm
Thinking you have to do this from the command line, passing the function.
TheRube, thank you for miraculously extending my knowledge. In summary:-
C:\Program Files\Everything 1.5a>everything64.exe -s [year:now:] works (5,075 objects)
C:\Program Files\Everything 1.5a>everything64.exe -s dm:[year:now:] ext:txt works (600 objects)
C:\Program Files\Everything 1.5a>everything64.exe -s dm:[day:now:] ext:txt works, but as you point out, “which is kind of meaningless, as in it will not be giving you the results you are after.”. It returns 50 objects from 2022, and the day number ranges from 1 to 31.
That leaves me with a puzzle which I will ponder as I walk to the grocery store.
When my human brain sees a date-like function, for example the construction "dm:[year:now:]" my weak human brain thinks of dates.
Likewise "dm:[hour:now:]" makes me think of the hour of the current time of day (eleven o'clock as I type)
So when I associate this hour-value ("11") with a date-time construction, my human brain thinks along the lines of "Oh come ON! You can SEE that I am interested in the hour-of-day.
Match the result of this hour-value ("11") with the hour-portion of the date-time in the date Modified field.
This is what makes other people (not me!) say "Stupid Computer!"
I am not sure how to address this, which is why I need to think for a while.
In the immediate sense I will remember that the pre-processor, macro-processor thinks only in terms of strings, without considering the context of the strings. " [year:now:]" is just another way of typing a four-digit string "2023" and does NOT generate a year-value of 2023.
But of course I don't want to be responsible for writing a more complex pre-processor.
More later ...
Thanks again, chris