Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
Subject: Re: Statistics'R'Us
Date: 22 Jan 1997 00:09:35 +0100	[thread overview]
Message-ID: <m23evupqvk.fsf@proletcult.slip.ifi.uio.no> (raw)
In-Reply-To: visigoth@naiad.fac.cs.cmu.edu's message of 21 Jan 1997 14:55:57 -0500

visigoth@naiad.fac.cs.cmu.edu writes:

> That doesn't mean that many faithful Gnus users aren't vampires.  <grin>
> 
> (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


  reply	other threads:[~1997-01-21 23:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-16  4:11 Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-21 15:43 ` Statistics'R'Us visigoth
1997-01-21 16:56   ` Statistics'R'Us Jason R. Mastaler
1997-01-21 19:55     ` Statistics'R'Us visigoth
1997-01-21 23:09       ` Lars Magne Ingebrigtsen [this message]
1997-01-22  8:00         ` Statistics'R'Us visigoth
1997-01-23  2:41           ` Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-23  4:33             ` Statistics'R'Us visigoth
1997-01-23  9:14               ` Statistics'R'Us Lars Magne Ingebrigtsen
1997-01-23 10:59                 ` Statistics'R'Us visigoth
1997-01-23 11:12                   ` Statistics'R'Us Lars Magne Ingebrigtsen

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=m23evupqvk.fsf@proletcult.slip.ifi.uio.no \
    --to=larsi@ifi.uio.no \
    /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).