if( $mtime > ($currenttime - ($currenttime % 86400)){ # file was modified this calendar day }