Follow-up Comment #8, bug #23065 (group findutils): [comment #7 Kommentar #7:] [...] > Now to the documentation: > The manpage only mentions the first sentence of the following Texinfo > manualsnippet:
> Measure times from the beginning of today rather than from 24 hours ago.
[...]
> Looking at the above examples, this description is correct, and describes
> how
> 'find -daystart' works.
[...]
No, the description is not correct.
Looking at the documentation for -atime (using atime instead of mtime since
atime docs stand on wheras mtime refers to atime) its we find:
-atime n
File was last accessed less than, more than or exactly n*24 hours
ago. When find figures out how many 24-hour periods ago the file was last
accessed, any fractional part is ignored, so to match -atime +1, a file has
to have been accessed at least two days ago.
So -atime documentation describes how the measuring works, and the measuring
compares the file's atime with the current time, not with "from 24 hours ago"
as -daystart claims. -daystart documentation's idea about how -atime actually
works when -daystart is not set is 24 hours off so it is somehow fitting that
the implementation is also 24 hours off and mixes up end of day with start of
day.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?23065>
_______________________________________________
Nachricht gesendet über Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
