這個問題困擾我有一段時間了。不過一直沒去找過答案,原因是暫時沒有使用到這個。
中午又把Solaris的ls手冊翻看了下,發現ls -l中顯示的時間戳是最後一次被修改的時間。
如果檔案修改時間在六個月前,那時間戳顯示格式僅為本地化的“月 日 年”,六個月内則顯示為 月日時間。
中文utf-8環境的系統中六個月前顯示為“2005 1月 23”這樣的年月日格式,六個月内則顯示為“3月 1日 13:06”這樣的月日24小時時間格式。
原文是這樣:
-l Lists in long format, giving mode, ACL indica-
tion, number of links, owner, group, size in
bytes, and time of last modification for each
file (see above). If the file is a special
file, the size field instead contains the major
and minor device numbers. If the time of last
modification is greater than six months ago, it
is shown in the format `month date year' for
the POSIX locale. When the LC_TIME locale
category is not set to the POSIX locale, a dif-
ferent format of the time field can be used.
Files modified within six months show `month
date time'. If the file is a symbolic link, the
filename is printed followed by "->" and the
path name of the referenced file.
本文轉自leipei部落格園部落格,原文連結:http://www.cnblogs.com/leipei2352/archive/2011/06/02/2068448.html,如需轉載請自行聯系原作者