Excluding future-dated files in 'find' on Cygwin

Backwoods BC <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <CAKwdsS_jrUpOrh=zpWxk=nc=5RAf54O3T9c5Sg_Ap8BZzEBYbQ@mail.gmail.com>
This relates to 'find' on Cygwin.

I often force the mtime on some files to be in the future so that they
will always appear at the top of a directory listing by reverse date
which is my preferred format in Windows. This lets me leave notes to
myself that will always be at the top of the list.

I tried to keep 'find' from reporting these files using the following
command line:

find ./ -mtime +0 -mtime -1

but this found nothing. When I changed it to:

find ./ -mtime 0 -mtime -1

it worked as desired and found all files less than a day old and not
future-dated.

Can someone tell me, please, if this is a bug or the expected behaviour.

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.