zoukankan      html  css  js  c++  java
  • ls l 中看到的时间戳是修改时间还是生成时间?

        这个问题困扰我有一段时间了。不过一直没去找过答案,原因是暂时没有使用到这个。
        中午又把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.

  • 相关阅读:
    第二十三讲:访问者模式
    第二十二讲:备忘录模式
    第二十讲:迭代模式
    第十九讲:职责链模式
    第十八讲:中介者模式
    UTC时间、GMT时间、本地时间、Unix时间戳
    【基础】SQL Server系统库的作用
    【基础】SQL Server系统库的作用
    【基础】SQL Server系统库的作用
    【收集】C#一些基础的面试题
  • 原文地址:https://www.cnblogs.com/leipei2352/p/2068448.html
Copyright © 2011-2022 走看看