Revert all files in a directory to the version closest to a specified time.