Closed sylvestre closed 3 months ago
hi, this issue looks like there hasn't been an update here for a long time, can I give it a try?
@hanbings sure, go ahead :)
Thanks.
Now find . ! -newermt 'jan 01, 2000' -exec touch -d@1706517278 {} +
works, and -newerat
and -newerct
is also available.
-newerBt
is available, but depends on whether the file system supports birthed time / created time
.
Use the following command to better observe the results.
find . -newermt 'jan 01, 2000'
find . -newermt 'jan 01, 2000 00:00:00'
In order to parse this time string, I added a function parse_date_str_to_timestamps()
that converts from string to timestamp, then created the corresponding Matcher
and compared it with the timestamp of the target file to get the result. I will add relevant test code later.
Please forgive my code for not looking very good.
The upstream manpage states: