Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: equivalent of (vm-subject-of msg) etc
Date: Wed, 18 May 2005 07:49:05 +0900	[thread overview]
Message-ID: <b9yd5rp8o4e.fsf@jpl.org> (raw)
In-Reply-To: <87psvpg9se.fsf@mat.ucm.es>

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

> I question I would like to insert, the from, the subject and the date
> into the diary file. However unfortunately
> (mail-header-date gnus-current-headers) returns
> (insert (mail-header-date gnus-current-headers))
> Tue, 17 May 2005 18:55:18 +0900
> but the format for the diary, should be
> May 17, 2005 18:55:18

> So I tried to change
> gnus-article-time-format to

> : "%b, %d %Y %T "
> but it did not help, the date of the current msg (yours) did not
> change.

> Is there any way to get that date format I need?

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

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

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




  reply	other threads:[~2005-05-17 22:49 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 [this message]
2005-05-18  9:27       ` Uwe Brauer
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=b9yd5rp8o4e.fsf@jpl.org \
    --to=yamaoka@jpl.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).