當您有兩個具有相同時間戳的相同檔案時,Windows卻說其中一個檔案比另一個檔案新,這意味著什麼?怎麼會這樣?今天的超級使用者問答帖子幫助困惑的讀者解開了時間戳之謎。
今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。
超級使用者讀者WBT想知道Windows如何決定兩個具有相同時間戳的檔案中哪一個更新:
When Windows displays a dialog like this with matching time stamps, how does it determine which of the two files is newer?
At first, I thought Windows was comparing the date created attribute and using the result of that comparison to label one or the other as newer. If a file was copied into a particular location, it may have the creation date of when the copy was made rather than the creation date of the original file. However, after reproducing it with another file, the result of which one is newer seems to be the opposite:
The result is the same whether copying or moving the file:
And for background, the file in test2 is a previously made copy of the file in test1.
Windows如何決定兩個具有相同時間戳的檔案中哪一個更新?
超級使用者貢獻者grawity為我們提供了答案:
Time stamps in the NTFS file system have a resolution of 100 nanoseconds (0.0000001 s). Even if the properties dialog shows the same rounded value, it could still be that the files were created within tenths of a second of each other.
Note: Most file systems measure times in μs or ns. FAT32 is a bit of a relic and rounds timestamps to two seconds.
Try one of the following methods to compare the full time stamps:
Via PowerShell:
有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。
圖片來源:WBT(超級使用者)
你可能聽說過很多“登錄檔”,特別是在調整Windows功能和解決系統問題時。但如果你和大多數人一樣,你實際上並不知道登錄檔是什麼。 ...
...個目錄中的檔案。但是grep是一個命令列工具,它不適合Windows使用者。幸運的是,grepWin是一個GUI工具。 ...
... 記事本++是一個免費的原始碼編輯器和Windows記事本的替代品。它是在GNU通用公共許可下發布的,這使它成為一個開源工具。 ...
... 本手冊將指導您完成在Windows10中設定和維護定期備份的過程。這些概念幾乎可以用於任何其他作業系統,儘管具體步驟可能略有不同。 ...
...可以讓您看到兩個檔案之間的視覺差異。我們將向您展示如何使用這個外掛來比較Notepad++中的兩個檔案。 ...
...級Linux發行版,則不需要太多。如果你要在macOS中虛擬化windows10,那麼你需要一個更現代的裝備。 ...
...立整合服務的過程,甚至與雜誌進行對話。 本教程演示如何設定啟動系統時啟動的系統服務。要在登入時啟動圖形程式,請改用桌面的啟動管理器。 啟動時執行程式 有時,您在計算機上安裝的軟體會將自己連線到Linux啟動過...