title: Delete files older than X minutes
body: <p>I would like to delete files that are older than 59 minutes. I have this so far:</p>
  
  <pre><code>find /tmp -daystart -maxdepth 1 -mmin +59 -type f -name "*.*" -exec rm -f {} \;
  </code></pre>
  
  <p>This doesn't work and seems to delete all files. I've tested this several times and I think the issue is to do with <code>daystart</code>. </p>
  
  <p>I've read the man page and it seems to base time on the beginning of the day rather than from 24 hours ago. If this is the case how can I accurately delete files that are older than 59 minutes? Do I need to account for <code>daystart</code> and add some more minutes?</p>
  
  <p>Example:</p>
  
  <pre><code>ubuntu@ip-10-138-30-118:/tmp$ ls -la
  total 8
  drwxrwxrwt  2 root   root   4096 Jul 20 14:39 ./
  drwxr-xr-x 23 root   root   4096 Jun 25 18:34 ../
  -rw-rw-r--  1 ubuntu ubuntu    0 Jul 20 12:35 a.txt
  </code></pre>
  
  <p>Both the following commands, return the file:</p>
  
  <pre><code>ubuntu@ip-10-138-30-118:/tmp$ find /tmp -daystart -maxdepth 1 -mmin +59 -type f -name "*.*"
  /tmp/a.txt
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>ubuntu@ip-10-138-30-118:/tmp$ find /tmp -daystart -maxdepth 1 -mmin +359 -type f -name "*.*"
  /tmp/a.txt
  </code></pre>
  
  <p>However, the file is not older than 659 minutes (10.9 hours)! But at 759 (12.65 hours), it doesn't return the file anymore?</p>