Variable: ls-lisp-format-time-list

ls-lisp-format-time-list is a customizable variable defined in ls-lisp.el.gz.

Value

("%b %e %H:%M" "%b %e  %Y")

Documentation

List of format-time-string specs to display file time stamps.

These specs are used ONLY if a valid locale can not be determined, or if the locale is "C" or "POSIX". If a valid non-"C" locale can be determined, file time stamps are displayed using hardcoded formats "%m-%d %H:%M" for new files and "%Y-%m-%d" for old files.

If ls-lisp-use-localized-time-format is non-nil, the specs specified by this option are used regardless of whether the locale can be determined.

The locale is determined by ls-lisp-format-time, which see.

Syntax: (EARLY-TIME-FORMAT OLD-TIME-FORMAT)

The EARLY-TIME-FORMAT is used if file has been modified within the current year. The OLD-TIME-FORMAT is used for older files. To use ISO
8601 dates, you could set:

(setq ls-lisp-format-time-list
       '("%Y-%m-%d %H:%M"
         "%Y-%m-%d "))

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/ls-lisp.el.gz
(defcustom ls-lisp-format-time-list
  '("%b %e %H:%M"
    "%b %e  %Y")
  "List of `format-time-string' specs to display file time stamps.
These specs are used ONLY if a valid locale can not be determined,
or if the locale is \"C\" or \"POSIX\".  If a valid non-\"C\" locale
can be determined, file time stamps are displayed using hardcoded
formats \"%m-%d %H:%M\" for new files and \"%Y-%m-%d\" for old files.

If `ls-lisp-use-localized-time-format' is non-nil, the specs specified
by this option are used regardless of whether the locale can be determined.

The locale is determined by `ls-lisp-format-time', which see.

Syntax:  (EARLY-TIME-FORMAT OLD-TIME-FORMAT)

The EARLY-TIME-FORMAT is used if file has been modified within the
current year.  The OLD-TIME-FORMAT is used for older files.  To use ISO
8601 dates, you could set:

\(setq ls-lisp-format-time-list
       \\='(\"%Y-%m-%d %H:%M\"
         \"%Y-%m-%d      \"))"
  :type '(list (string :tag "Early time format")
	       (string :tag "Old time format"))
  :group 'ls-lisp)