From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9521 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Statistics'R'Us Date: 22 Jan 1997 00:09:35 +0100 Sender: larsi@proletcult.slip.ifi.uio.no Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035149535 19019 80.91.224.250 (20 Oct 2002 21:32:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:32:15 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.4/8.8.4) with SMTP id PAA09654 for ; Tue, 21 Jan 1997 15:30:39 -0800 Original-Received: from proletcult.slip.ifi.uio.no (root@xyplex52.uio.no [129.240.154.72]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 22 Jan 1997 00:11:28 +0100 Original-Received: (from larsi@localhost) by proletcult.slip.ifi.uio.no (8.8.2/8.8.2) id AAA01749; Wed, 22 Jan 1997 00:09:37 +0100 Original-To: ding@ifi.uio.no In-Reply-To: visigoth@naiad.fac.cs.cmu.edu's message of 21 Jan 1997 14:55:57 -0500 Original-Lines: 58 X-Mailer: Red Gnus v0.83/Emacs 19.34 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ That doesn't mean that many faithful Gnus users aren't vampires. > > (So, Lars, was it based on your local time, or on the local time of > the sender?) Uhm... I asked myself the same question two minutes after sending off the stats, and I don't quite know. :-) Let's see: (nnmail-date-to-time "21 Jan 1997 14:55:57 -0500") => (13028 56049) (format-time-string "%k" '(13028 56049)) => "16" Uh. (format-time-string "%d %m %y %T" '(13028 56049)) => "21 01 97 16:04:17" Uh. Perhaps `nnmail-date-to-time' is buggy? (current-time-string) => "Wed Jan 22 00:04:21 1997" (current-time-string (nnmail-date-to-time (current-time-string))) => "Wed Jan 22 00:04:34 1997" No, looks ok... Uh. Let's see. When it's 14 at your house, it's 20 at mine. Which isn't 16 anywhere, except in the Atlantic ocean somewhere. Here's the definition of `nnmail-date-to-time': (defun nnmail-date-to-time (date) "Convert DATE into time." (condition-case () (let* ((d1 (timezone-parse-date date)) (t1 (timezone-parse-time (aref d1 3)))) (apply 'encode-time (mapcar (lambda (el) (and el (string-to-number el))) (list (aref t1 2) (aref t1 1) (aref t1 0) (aref d1 2) (aref d1 1) (aref d1 0) (aref d1 4))))) ;; If we get an error, then we just return a 0 time. (error (list 0 0)))) What's wrong here? -- (domestic pets only, the antidote for overdose, milk.) larsi@ifi.uio.no * Lars Ingebrigtsen