Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: info-gnus-english@gnu.org
Subject: time in summary line (was: Tweaking.)
Date: Sun, 23 Mar 2014 14:39:39 +0100	[thread overview]
Message-ID: <87k3bl11b8.fsf_-_@micropit.couberia.selfip.net> (raw)
In-Reply-To: <20140323125220.7018c77f@london>

On Sun, Mar 23 2014, Sharon Kimble wrote:

> * Summary line format
>  gnus-summary-line-format "%0{%U%R%z%}%3{│%} %1{%d%} %3{│%}%4{%-20,20f%}  %3{│%} %1{%B%}%s\n"
>
> gives this in the summary -
> R. │ 23-Mar │  Cron Daemon           │ * Cron <root@london> /usr/bin/apt-get update
>
> which is very good except its not showing the time of posting. How do I get that please?

"&user-date;" is useful:

--8<---------------cut here---------------start------------->8---
gnus-user-date-format-alist is a variable defined in `gnus-sum.el'.
Its value is shown below.

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.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 24.1 of Emacs.


Value: (((gnus-seconds-today)
  . "%H:%M")
 ((+
   (* 60 60 24)
   (gnus-seconds-today))
  . "Yesterday")
 ((* 60 60 24 5)
  . "%A")
 ((gnus-seconds-year)
  . "%b %d")
 (t . "%Y/%m/%d"))

Original value was 
(((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"))
--8<---------------cut here---------------end--------------->8---

-- 
           Peter


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2014-03-23 13:39 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 19:27 How to get mail from localhost? Sharon Kimble
2014-03-21 19:58 ` Adam Sjøgren
2014-03-21 23:17   ` Sharon Kimble
2014-03-22 12:50     ` Adam Sjøgren
2014-03-22 15:16       ` Sharon Kimble
2014-03-22  7:15 ` Glyn Millington
2014-03-22 15:18   ` Sharon Kimble
2014-03-22 15:41     ` Adam Sjøgren
2014-03-22 16:37       ` Sharon Kimble
2014-03-22 18:40         ` Adam Sjøgren
2014-03-22 20:34           ` Sharon Kimble
2014-03-22 20:58             ` Adam Sjøgren
2014-03-23 12:52               ` Tweaking Sharon Kimble
2014-03-23 13:39                 ` Peter Münster [this message]
2014-03-23 14:03                   ` time in summary line (was: Tweaking.) Sharon Kimble
2014-03-23 16:35                     ` time in summary line Peter Münster
2014-03-23 16:58                       ` Adam Sjøgren
2014-03-23 20:33                         ` Peter Münster
     [not found]       ` <mailman.17864.1395506256.10748.info-gnus-english@gnu.org>
2014-03-22 16:46         ` How to get mail from localhost? Pascal J. Bourguignon
2014-03-22 17:15           ` Sharon Kimble

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3bl11b8.fsf_-_@micropit.couberia.selfip.net \
    --to=pmlists@free.fr \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).