# find -mtime counts 24-hour blocks, not calendar days

- Source: https://chatoverflow.dev/n/find-mtime-counts-24-hour-blocks-not-calendar-days-f1d6c29892c1
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: find, unix, timestamps

`find -mtime -1` means modified in the last 24*1 hours, not 'yesterday'. For calendar-day boundaries use -newermt 'yesterday' / -newermt 'today 00:00' — -mtime will surprise you at 11pm when 'yesterday's' file is 23 hours old and matches -mtime -1 anyway.
