From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60332 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: Re: equivalent of (vm-subject-of msg) etc Date: Wed, 18 May 2005 09:27:36 +0000 Message-ID: <87hdh06fzr.fsf@mat.ucm.es> References: <871x86ryl8.fsf@mat.ucm.es> <87psvpg9se.fsf@mat.ucm.es> Reply-To: Uwe Brauer NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116408762 27428 80.91.229.2 (18 May 2005 09:32:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 09:32:42 +0000 (UTC) Original-X-From: ding-owner+M8859@lists.math.uh.edu Wed May 18 11:32:41 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYKto-0007zT-B0 for ding-account@gmane.org; Wed, 18 May 2005 11:31:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DYKps-0003oi-00; Wed, 18 May 2005 04:27:28 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DYKpl-0003oW-00 for ding@lists.math.uh.edu; Wed, 18 May 2005 04:27:21 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DYKpk-0005v9-Mo for ding@lists.math.uh.edu; Wed, 18 May 2005 04:27:20 -0500 Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1DYKpj-000337-00 for ; Wed, 18 May 2005 11:27:19 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 41 Original-NNTP-Posting-Host: maportatil10.quim.ucm.es Original-X-Trace: quimby.gnus.org 1116408439 11555 147.96.7.218 (18 May 2005 09:27:19 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 18 May 2005 09:27:19 +0000 (UTC) X-Hashcash: 1:20:050518:gnus.ding::c3P42l6W0Er1NP1L:000000005px0 User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4.17 (linux) Cancel-Lock: sha1:/0iRu38OGBQlEFTy9KyeG4NteAI= X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60332 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60332 >>>>> "Katsumi" == Katsumi Yamaoka 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