Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
Subject: Re: equivalent of (vm-subject-of msg) etc
Date: Wed, 18 May 2005 09:27:36 +0000	[thread overview]
Message-ID: <87hdh06fzr.fsf@mat.ucm.es> (raw)
In-Reply-To: <b9yd5rp8o4e.fsf@jpl.org>

>>>>> "Katsumi" == Katsumi Yamaoka <yamaoka@jpl.org> writes:

>>>>> In <87psvpg9se.fsf@mat.ucm.es> Uwe Brauer wrote:

    Katsumi> gnus-article-time-format is used only when displaying date in
    Katsumi> the article buffer.  In this case, perhaps you'd better use
    Katsumi> general functions like the following:

    Katsumi> (format-time-string
    Katsumi>  "%b %d, %Y %T"
    Katsumi>  (apply 'encode-time
    Katsumi> 	(parse-time-string
    Katsumi> 	 (mail-header-date gnus-current-headers))))

    Katsumi> This form returns the string of the date in the local timezone,
    Katsumi> so "Tue, 17 May 2005 18:55:18 +0900" will be expressed as
    Katsumi> "May 17, 2005 09:55:18" (if you are in the +0000 zone).


Thanks very much, and sorry to bother you, but I presume I should put
that function into an appropriate hook?
I tried

(add-hook 'gnus-article-mode-hook 'my-set-gnus-time)

(defun my-set-gnus-time ()
(interactive)
(format-time-string
 "%b %d, %Y %T"
 (apply 'encode-time
	(parse-time-string
	 (mail-header-date gnus-current-headers)))))


But that did not work out, what is my mistake?

Thanks

Uwe 





  reply	other threads:[~2005-05-18  9:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17  9:28 Uwe Brauer
2005-05-17  9:55 ` Katsumi Yamaoka
2005-05-17 15:19   ` Uwe Brauer
2005-05-17 22:49     ` Katsumi Yamaoka
2005-05-18  9:27       ` Uwe Brauer [this message]
2005-05-18 10:01         ` Katsumi Yamaoka
2005-05-18 13:31           ` Uwe Brauer

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=87hdh06fzr.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    /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).