Editing
File timestamp
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
檔案相關時間:上次打開日期、修改日期、製作日期 == 不同作業系統的檔案時間欄位名稱對照表 == <table border="1" class="wikitable sortable"> <tr> <th>作業系統</th> <th>檔案上次打開日期</th> <th>檔案修改日期</th> <th>檔案製作日期</th> </tr> <tr> <td>Finder on {{Mac}}</td> <td>上次打開日期</td> <td>修改日期</td> <td>製作日期</td> </tr> <tr> <td>stat command on {{Mac}}</td> <td>atime (access time)</td> <td>mtime (modify time) </td> <td>birthtime (birth time)</td> </tr> <tr> <td>stat command on CentOS {{Linux}}</td> <td>Access</td> <td>Modify</td> <td>Birth</td> </tr> <tr> <td>{{Win}}</td> <td>存取日期 (預設該功能不會啟用<ref>[https://social.technet.microsoft.com/Forums/zh-TW/a4e07940-b63e-4ee7-bca0-34809bae265e/-?forum=windows7cht 存取日期 及修改日期的差別]</ref>)</td> <td>修改日期</td> <td>建立日期</td> </tr> </table> == Mac & Linux == {{Mac}} Finder 列表模式<ref>[https://www.cool3c.com/article/94252 [蘋果急診室] Mac 電腦入門特輯:檔案管理大不同!(三)讓你更檢視 / 預覽檔案更容易 (94252) - 癮科技 Cool3c]</ref><ref>[https://support.apple.com/zh-tw/guide/mac-help/mh35951/mac 整理 Mac 桌面上檔案的方式 - Apple 支援 (台灣)]</ref> * 「上次打開日期」(Date Last Opened; Last Activity Date):打開檔案、預覽檔案都造成「上次打開日期」的改變 * 「修改日期」(Date Modified):編輯儲存檔案後的日期 * 「加入日期」(Date Added):檔案加入資料夾的日期。例如檔案移動到不同資料夾的日期、拷貝到資料夾的日期、檔案解壓縮的日期 * 「製作日期」(Date Created):檔案建立的日期 {{Tips}} 壓縮檔解壓縮後,要在茫茫檔海中找到解壓縮後的檔案,不能用「製作日期」或「修改日期」,而是用「加入日期」排序! {{Linux}} [https://linuxize.com/post/stat-command-in-linux/ Stat Command in Linux | Linuxize]<ref>[https://unix.stackexchange.com/questions/2464/timestamp-modification-time-and-created-time-of-a-file linux - timestamp, modification time, and created time of a file - Unix & Linux Stack Exchange]</ref><ref>[https://superuser.com/questions/387042/how-to-check-all-timestamps-of-a-file linux - How to check all timestamps of a file? - Super User]</ref>。{{kbd | key=stat}} 指令依序顯示以下四個時間資訊: * atime (access time) * mtime (modify time) * ctime (change time):修改檔案 metadata 的時間,例如修改檔案的擁有者、權限、檔案名稱、移到不同目錄<ref>[https://linuxhandbook.com/file-timestamps/ File Timestamps in Linux: atime, mtime, ctime Explained - Linux Handbook]</ref>。 * birthtime (birth time) == Tools == * [https://blog.gtwang.org/linux/linux-touch-command-tutorial-examples/ Linux 的 touch 指令用法教學與範例 - G. T. Wang] {{Linux}} && {{Mac}} * [https://www.azofreeware.com/2015/12/newfiletime.html NewFileTime 3.88 免安裝中文版 - 修改檔案時間的軟體 - 阿榮福利味 - 免費軟體下載] {{Win}} * [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 /> [[Category:Software]]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Kbd
(
edit
)
Template:Linux
(
edit
)
Template:Mac
(
edit
)
Template:Tips
(
edit
)
Template:Win
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information