Differences
This shows you the differences between the selected revisions of the page.
2018-04-09 | 2018-10-16 | ||
exclude mask use has the same restriction as combining masks (martin) | 5.14 today and yesterday time constraint aliases. (martin) | ||
Line 31: | Line 31: | ||
| ''>size[KMG]'' | Matches files larger than ''size''. \\ Note that directories are considered to have a zero size. \\ Following units can be used: ''K'' (Kilobyte), ''M'' (Megabyte) or ''G'' (Gigabyte). | ''*.bin>1M'' | | | ''>size[KMG]'' | Matches files larger than ''size''. \\ Note that directories are considered to have a zero size. \\ Following units can be used: ''K'' (Kilobyte), ''M'' (Megabyte) or ''G'' (Gigabyte). | ''*.bin>1M'' | | ||
| ''<size[KMG]'' | Matches files smaller than ''size''. | ''<1G'' | | | ''<size[KMG]'' | Matches files smaller than ''size''. | ''<1G'' | | ||
- | | ''>yyyy-mm-dd[ hh:mm[:ss]]'' | Matches files modified the last time after the date or time (i.e. "newer than"). | ''>2012-01-01'' \\ ''>2012-02-29 08:47'' | | + | | ''>yyyy-mm-dd[ hh:mm[:ss]]'' \\ ''>today'' \\ ''>yesterday'' | Matches files modified the last time after the date or time (i.e. "newer than"). \\ Keywords ''today'' and ''yesterday'' can be used instead of today's and yesterday's midnight (&beta_feature). | ''>2012-01-01'' \\ ''>2012-02-29 08:47'' \\ ''>today'' | |
| ''>time[YDHNS]'' | Matches files modified the last time within specified interval (i.e. "newer than"). \\ Cannot be used for directories. \\ One of the following units must be used: ''Y'' (years), ''D'' (days), ''H'' (hours), ''N'' (minutes) or ''S'' (seconds). | ''*.doc>1Y'' | | | ''>time[YDHNS]'' | Matches files modified the last time within specified interval (i.e. "newer than"). \\ Cannot be used for directories. \\ One of the following units must be used: ''Y'' (years), ''D'' (days), ''H'' (hours), ''N'' (minutes) or ''S'' (seconds). | ''*.doc>1Y'' | | ||
- | | ''<yyyy-mm-dd[ hh:mm[:ss]]'' | Matches files modified the last time before the date or time (i.e. "older than"). | ''*.doc<2012-02-29 08:54:21'' | | + | | ''<yyyy-mm-dd[ hh:mm[:ss]]'' \\ ''<today'' \\ ''<yesterday'' | Matches files modified the last time before the date or time (i.e. "older than"). \\ Keywords ''today'' and ''yesterday'' can be used instead of today's and yesterday's midnight (&beta_feature). | ''*.doc<2012-02-29 08:54:21'' \\ ''<yesterday'' | |
| ''<time[YDHNS]'' | Matches files modified the last time before specified interval (i.e. "older than"). | ''<60D'' | | | ''<time[YDHNS]'' | Matches files modified the last time before specified interval (i.e. "older than"). | ''<60D'' | | ||
Line 44: | Line 44: | ||
Note that if your constraint contains spaces (particularly constraint with date and time), to use it in [[scripting]], you need to enclose whole mask to double-quotes. | Note that if your constraint contains spaces (particularly constraint with date and time), to use it in [[scripting]], you need to enclose whole mask to double-quotes. | ||
- | In [[scripting]], you can use ''[[scripting#timestamp|%TIMESTAMP%]]'' syntax to generate a time constraint. E.g. to select all files modified today, use ''*>=%TIMESTAMP#yyyy-mm-dd%''. | + | In [[scripting]], you can use ''[[scripting#timestamp|%TIMESTAMP%]]'' syntax to generate a time constraint. E.g. to select all files modified since the day before yesterday midnight, use ''*>=%TIMESTAMP-2D#yyyy-mm-dd%''. |
===== [[combining]] Combining Masks ===== | ===== [[combining]] Combining Masks ===== |