Variable: gnus-user-date-format-alist
gnus-user-date-format-alist is a customizable variable defined in
gnus-sum.el.gz.
Value
(((gnus-seconds-today) . "Today, %H:%M")
((+ 86400 (gnus-seconds-today)) . "Yesterday, %H:%M")
(604800 . "%A %H:%M") ((gnus-seconds-month) . "%A %d")
((gnus-seconds-year) . "%B %d") (t . "%b %d %Y"))
Documentation
Specifies date format depending on age of article.
This is an alist of items (AGE . FORMAT). AGE can be a number (of
seconds) or a Lisp expression evaluating to a number. When the age of
the article is less than this number, then use format-time-string
with the corresponding FORMAT for displaying the date of the article.
If AGE is not a number or a Lisp expression evaluating to a
non-number, then the corresponding FORMAT is used as a default value.
Note that the list is processed from the beginning, so it should be sorted by ascending AGE. Also note that items following the first non-number AGE will be ignored.
You can use the functions gnus-seconds-today, gnus-seconds-month
and gnus-seconds-year in the AGE spec. They return the number of
seconds passed since the start of today, of this month, of this year,
respectively.
This variable was added, or its default value changed, in Emacs 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defcustom gnus-user-date-format-alist
'(((gnus-seconds-today) . "Today, %H:%M")
((+ 86400 (gnus-seconds-today)) . "Yesterday, %H:%M")
(604800 . "%A %H:%M") ; That's one week
((gnus-seconds-month) . "%A %d")
((gnus-seconds-year) . "%B %d")
(t . "%b %d %Y")) ; This one is used when no other
; does match
"Specifies date format depending on age of article.
This is an alist of items (AGE . FORMAT). AGE can be a number (of
seconds) or a Lisp expression evaluating to a number. When the age of
the article is less than this number, then use `format-time-string'
with the corresponding FORMAT for displaying the date of the article.
If AGE is not a number or a Lisp expression evaluating to a
non-number, then the corresponding FORMAT is used as a default value.
Note that the list is processed from the beginning, so it should be
sorted by ascending AGE. Also note that items following the first
non-number AGE will be ignored.
You can use the functions `gnus-seconds-today', `gnus-seconds-month'
and `gnus-seconds-year' in the AGE spec. They return the number of
seconds passed since the start of today, of this month, of this year,
respectively."
:version "24.1"
:group 'gnus-summary-format
:type '(alist :key-type sexp :value-type string))