File timestamp: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
m (Text replacement - ": Image:Owl icon.jpg " to "{{Tips}} ")
 
(2 intermediate revisions by the same user not shown)
Line 42: Line 42:
* 「製作日期」(Date Created):檔案建立的日期
* 「製作日期」(Date Created):檔案建立的日期


: [[Image:Owl icon.jpg]] 壓縮檔解壓縮後,要在茫茫檔海中找到解壓縮後的檔案,不能用「製作日期」或「修改日期」,而是用「加入日期」排序!
{{Tips}} 壓縮檔解壓縮後,要在茫茫檔海中找到解壓縮後的檔案,不能用「製作日期」或「修改日期」,而是用「加入日期」排序!




Line 55: Line 55:
* [https://www.azofreeware.com/2015/12/newfiletime.html NewFileTime 3.88 免安裝中文版 - 修改檔案時間的軟體 - 阿榮福利味 - 免費軟體下載] {{Win}}
* [https://www.azofreeware.com/2015/12/newfiletime.html NewFileTime 3.88 免安裝中文版 - 修改檔案時間的軟體 - 阿榮福利味 - 免費軟體下載] {{Win}}
* [https://www.php.net/manual/en/function.filemtime.php PHP: filemtime - Manual]
* [https://www.php.net/manual/en/function.filemtime.php PHP: filemtime - Manual]
== Related articles ==
* [https://www.itechtics.com/change-timestamp/ How To Change A File/Folder Date Timestamp Using Command Line And Other Tools]
* [https://stackoverflow.com/questions/57432314/comparing-lastwritetime-and-creationtime powershell - Comparing LastWriteTime and CreationTime - Stack Overflow]


== References ==
== References ==

Latest revision as of 20:13, 8 January 2025

檔案相關時間:上次打開日期、修改日期、製作日期

不同作業系統的檔案時間欄位名稱對照表[edit]

作業系統 檔案上次打開日期 檔案修改日期 檔案製作日期
Finder on macOS icon_os_mac.png 上次打開日期 修改日期 製作日期
stat command on macOS icon_os_mac.png atime (access time) mtime (modify time) birthtime (birth time)
stat command on CentOS Linux Os linux.png Access Modify Birth
Win Os windows.png 存取日期 (預設該功能不會啟用[1]) 修改日期 建立日期

Mac & Linux[edit]

macOS icon_os_mac.png Finder 列表模式[2][3]

  • 「上次打開日期」(Date Last Opened; Last Activity Date):打開檔案、預覽檔案都造成「上次打開日期」的改變
  • 「修改日期」(Date Modified):編輯儲存檔案後的日期
  • 「加入日期」(Date Added):檔案加入資料夾的日期。例如檔案移動到不同資料夾的日期、拷貝到資料夾的日期、檔案解壓縮的日期
  • 「製作日期」(Date Created):檔案建立的日期
Owl icon.jpg 壓縮檔解壓縮後,要在茫茫檔海中找到解壓縮後的檔案,不能用「製作日期」或「修改日期」,而是用「加入日期」排序!


Linux Os linux.png Stat Command in Linux | Linuxize[4][5]stat 指令依序顯示以下四個時間資訊:

  • atime (access time)
  • mtime (modify time)
  • ctime (change time):修改檔案 metadata 的時間,例如修改檔案的擁有者、權限、檔案名稱、移到不同目錄[6]
  • birthtime (birth time)

Tools[edit]

Related articles[edit]

References[edit]