Got it. Thank you for a direction to try. I was hoping for a non looping solution since the file set I have to work with can be several thousand big and I would need to run this quickly when I needed it. Essentially I need to grab log files from multiple servers within x minutes of the current time and dump them into a database to look for failures when problems pop up. I got the database side ready to go I just need to be able to grab the right files when someone does a shoulder tap on me and asked, "Hey, can you look at...."
The loop was just for the sake of an example of getting the "minutes_old" of a file. Depending on how much you know about the possible target files you may or may not need a loop. A user-defined function could help with determining "minutes_old". Perhaps something like
function minutes_old `%@eval[(%@makeage[%_date,%_time] - %@fileage[%1]) / 600000000=1]`
Thanks for the code examples. I think I have something working. Still can't see how I can avoid a loop since a custom function would need to be applied to individual files (as far as I can see). But, since the log names incorporate the date in a 2022-05-12 format I can at least target today's date with a file mask on the do statement fileset which reduces the loop to a manageable level for the file age evaluation to further cut it down to the last x minutes of the day.
That's good. I didn't mention ranges because of the problem of time ranges not going back into the previous day. That is, for example, /[t-60] doesn't work as might be desired between 00:00:00 and 00:59:59. Your method gets around that.