I know it is possible to filter by modified time by using modifier
-mtime, but I would like to filter by the time the file was added
I'm on mac and I see added time in finder
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The HFS filesystem supports several different timestamps on files. The normal Unix timestamps are there - "modification time", "change time", "last access time", and there is also "creation time" which is HFS-specific.
To see the standard timestamps for a file, use "stat -x FILE". You can also see them individually with various options to "ls" but this is less confusing.
Now things get weird. I'm testing on MacOS 10.13 (High Sierra). The "stat" command without any options is supposed to show you all the timestamps, and indeed it does show 4 timestamps, but the 4th one it shows seems to be a duplicate of the modification time. The GetFileInfo command with no options is supposed to print out the creation and modification time, but on my machine it clearly prints the mod time for both values. "ls -Ul" is supposed to list out the creation time, but again, it shows me the modification time.
I suspect the "Date Added" field in Finder is the HFS inode creation time, and I wouldn't expect any standard Unix command to be able to see that unless it had specific extensions for MacOS. Apple did seem to add hooks to "find", "ls", and "stat" to use the creation time field, but it doesn't look like they did so with rsync. And given the results of my testing I don't think I'd want to rely on their changes even if they did.
So the answer for rsync appears to be "no, you can't do that."
I'm wondering why you think you need to filter that way for rsync - rsync's job is to find changed files and copy them, filtering by date added doesn't buy you anything because a file could get changed and not have its creation date updated.