private double getFileAge ( File file ) { final Date d = new Date ( ) ; final long modified = file . lastModified ( ) ; final double time = ( d . getTime ( ) - modified ) / 1000.0 / 60.0 ; LOGGER . debug ( "Lock file age is {} minutes" , time ) ; return time ; }
Returns the age of the file in minutes .