Differences
This shows you the differences between two versions of the page.
en:docs:cmd:file:ranges:date [2014/05/24 08:58] – created valerius | en:docs:cmd:file:ranges:date [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Data Ranges ===== | ||
- | |||
- | Date ranges select files that were created or last modified at any time between the two dates. For example, **/ | ||
- | |||
- | The time for the starting date defaults to 00:00:00 and the time for the ending date defaults to 23:59:59. You can alter these defaults, if you wish, by including a start and stop time inside the date range. The time is separated from the date with an at sign [**@**]. For example, the range **/ | ||
- | |||
- | If you omit the second argument in a date range, **CMD.EXE** substitutes the current date and time. For example, **/ | ||
- | |||
- | You can use an offset value for either the beginning or ending date, or both. An offset begins with a plus sign [**+**] or a minus sign [**-**] followed by an integer. If you use an offset for the second value, it is calculated relative to the first. If you use an offset for the first (or only) value, the current date is used as the basis for calculation. For example: | ||
- | |||
- | ^Specification | ||
- | |**/ | ||
- | |**/ | ||
- | |**/ | ||
- | |**/ | ||
- | |**/ | ||
- | |||
- | As a shorthand way of specifying files modified today, you can also use **/[d]**; this has the same effect as the **/[d-0]** example shown above. | ||
- | |||
- | To select files last modified **n** days ago or earlier, use **/ | ||
- | |||
- | < | ||
- | [c:\] dir / | ||
- | </ | ||
- | |||
- | This reversed date range (with the later date given first) will be handled correctly by **CMD.EXE**. It takes advantage of the facts that an offset in the **start** date is relative to today, and that the base or " | ||
- | |||
- | You cannot use offsets in the time portion of a date range (the part after an at sign), but you can combine a time with a date offset. For example, **/ | ||
- | |||
- | The HPFS file system maintains 3 sets of dates and times for each file: creation, last access, and last write. By default, date ranges work with the last write date/time stamp. You can use the "last access" | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | For example, to select files that were last accessed yesterday or today: | ||
- | |||
- | < | ||
- | /[da-1] | ||
- | </ | ||