Differences

This shows you the differences between the selected revisions of the page.

2018-10-16 2018-10-16
5.14 today and yesterday time constraint aliases. (martin) 5.14 Time constraints can be set to a start of an interval. + Redefined yesterday/today keywords using the S suffix description (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[&nbsp;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&nbsp;08:47'' \\ ''>today'' | +| ''>yyyy-mm-dd[&nbsp;hh:mm[:ss]]'' | Matches files modified the last time after the date or time (i.e. "newer than"). | ''>2012-01-01'' \\ ''>2012-02-29&nbsp;08:47'' | 
-| ''>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&gt;1Y'' | +| ''>time[YDHNS][S]''  | 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). \\ Optional ''S&#039;&#039; suffix denotes rounding the time before the interval to the start of the interval unit. For example, ''2DS'' refers to the start (midnight) of the day before yesterday. &#039;&#039;0HS&#039;&#039; refers to the start of current hour. Keywords &#039;'today'' and '&#039;yesterday'' can be used instead of ''0DS&#039;&#039; and ''1DS&#039;&#039;, respectively. &amp;beta_feature | ''*.doc>1Y'' \\ ''>2HS'' \\ ''>yesterday&#039;&#039;
-| ''&lt;yyyy-mm-dd[&amp;nbsp;hh:mm[:ss]]'' \\ ''&lt;today'' \\ ''&lt;yesterday'' | Matches files modified the last time before the date or time (i.e. &quot;older than&quot;). \\ Keywords ''today'' and ''yesterday'' can be used instead of today's and yesterday's midnight (&amp;beta_feature). | ''*.doc<2012-02-29&nbsp;08:54:21'' \\ ''<yesterday'' | +| ''<yyyy-mm-dd[&nbsp;hh:mm[:ss]]'' | Matches files modified the last time before the date or time (i.e. "older than"). | ''*.doc<2012-02-29&nbsp;08:54:21'' | 
-| ''<time[YDHNS]''  | Matches files modified the last time before specified interval (i.e. "older than"). | ''<60D'' |+| ''<time[YDHNS][S]''  | Matches files modified the last time before specified interval (i.e. "older than"). | ''<60D'' |
It is also possible to use operators ''>='' and ''%%<=%%''. It is also possible to use operators ''>='' and ''%%<=%%''.
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 since the day before yesterday midnight, use ''*>=%TIMESTAMP-2D#yyyy-mm-dd%''.+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%''. //This syntax is deprecated in the latest beta version by the ''S'' suffix, see the table above.// &beta
===== [[combining]] Combining Masks ===== ===== [[combining]] Combining Masks =====

Last modified: by martin