mirror of
https://github.com/sharkdp/fd
synced 2024-10-02 22:13:31 +00:00
parent
fe992706ae
commit
f32060b0de
|
@ -26,6 +26,7 @@
|
||||||
- Support `--list-details` on more platforms (like BusyBox), see #783
|
- Support `--list-details` on more platforms (like BusyBox), see #783
|
||||||
- The filters `--owner`, `--size`, and `--changed-{within,before}` now apply to symbolic links
|
- The filters `--owner`, `--size`, and `--changed-{within,before}` now apply to symbolic links
|
||||||
themselves, rather than the link target, except when `--follow` is specified; see #863
|
themselves, rather than the link target, except when `--follow` is specified; see #863
|
||||||
|
- Change time comparisons to be exclusive, see #794 (@jacobmischka)
|
||||||
|
|
||||||
## Changes
|
## Changes
|
||||||
|
|
||||||
|
|
4
doc/fd.1
vendored
4
doc/fd.1
vendored
|
@ -269,7 +269,7 @@ tebibytes
|
||||||
.TP
|
.TP
|
||||||
.BI "\-\-changed-within " date|duration
|
.BI "\-\-changed-within " date|duration
|
||||||
Filter results based on the file modification time.
|
Filter results based on the file modification time.
|
||||||
Files with modification times greater than or equal to the argument will be returned.
|
Files with modification times greater than the argument will be returned.
|
||||||
The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point
|
The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point
|
||||||
in time in either full RFC3339 format with time zone, or as a date or datetime in the
|
in time in either full RFC3339 format with time zone, or as a date or datetime in the
|
||||||
local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).
|
local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).
|
||||||
|
@ -282,7 +282,7 @@ Examples:
|
||||||
.TP
|
.TP
|
||||||
.BI "\-\-changed-before " date|duration
|
.BI "\-\-changed-before " date|duration
|
||||||
Filter results based on the file modification time.
|
Filter results based on the file modification time.
|
||||||
Files with modification times less than or equal to the argument will be returned.
|
Files with modification times less than the argument will be returned.
|
||||||
The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point
|
The argument can be provided as a duration (\fI10h, 1d, 35min\fR) or as a specific point
|
||||||
in time in either full RFC3339 format with time zone, or as a date or datetime in the
|
in time in either full RFC3339 format with time zone, or as a date or datetime in the
|
||||||
local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).
|
local time zone (\fIYYYY-MM-DD\fR or \fIYYYY-MM-DD HH:MM:SS\fR).
|
||||||
|
|
|
@ -39,8 +39,8 @@ impl TimeFilter {
|
||||||
|
|
||||||
pub fn applies_to(&self, t: &SystemTime) -> bool {
|
pub fn applies_to(&self, t: &SystemTime) -> bool {
|
||||||
match self {
|
match self {
|
||||||
TimeFilter::Before(limit) => t <= limit,
|
TimeFilter::Before(limit) => t < limit,
|
||||||
TimeFilter::After(limit) => t >= limit,
|
TimeFilter::After(limit) => t > limit,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue