find: Age Ranges

1 
1 2.3.1 Age Ranges
1 ----------------
1 
1 These tests are mainly useful with ranges ('+N' and '-N').
1 
1  -- Test: -atime n
1  -- Test: -ctime n
1  -- Test: -mtime n
1      True if the file was last accessed (or its status changed, or it
1      was modified) N*24 hours ago.  The number of 24-hour periods since
1      the file's timestamp is always rounded down; therefore 0 means
1      "less than 24 hours ago", 1 means "between 24 and 48 hours ago",
1      and so forth.  Fractional values are supported but this only really
1      makes sense for the case where ranges ('+N' and '-N') are used.
1 
1  -- Test: -amin n
1  -- Test: -cmin n
1  -- Test: -mmin n
1      True if the file was last accessed (or its status changed, or it
1      was modified) N minutes ago.  These tests provide finer granularity
1      of measurement than '-atime' et al., but rounding is done in a
1      similar way (again, fractions are supported).  For example, to list
1      files in '/u/bill' that were last read from 2 to 6 minutes ago:
1 
1           find /u/bill -amin +2 -amin -6
1 
1  -- Option: -daystart
1      Measure times from the beginning of today rather than from 24 hours
1      ago.  So, to list the regular files in your home directory that
1      were modified yesterday, do
1 
1           find ~/ -daystart -type f -mtime 1
1 
1      The '-daystart' option is unlike most other options in that it has
1      an effect on the way that other tests are performed.  The affected
1      tests are '-amin', '-cmin', '-mmin', '-atime', '-ctime' and
1      '-mtime'.  The '-daystart' option only affects the behaviour of any
1      tests which appear after it on the command line.
1