From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24103 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Time zone and 'lapsed under NT Date: 09 Jul 1999 23:01:10 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161728 6917 80.91.224.250 (21 Oct 2002 00:55:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:55:28 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA28615 for ; Fri, 9 Jul 1999 17:02:11 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB23725; Fri, 9 Jul 1999 16:02:04 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 09 Jul 1999 16:02:53 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA17372 for ; Fri, 9 Jul 1999 16:02:42 -0500 (CDT) Original-Received: from quimbies.gnus.org (bang.netfonds.no [195.1.89.231]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA28590 for ; Fri, 9 Jul 1999 17:01:38 -0400 (EDT) Original-Received: (from larsi@localhost) by quimbies.gnus.org (8.8.7/8.8.7) id XAA12069; Fri, 9 Jul 1999 23:01:36 +0200 Mail-Copies-To: never X-Now-Reading: Bryan Cholfin (ed.)'s _The Best of Crank!_ X-Now-Playing: King Crimson's _Discipline_: "Frame By Frame" Original-To: ding@gnus.org In-Reply-To: Toby Speight's message of "09 Jul 1999 17:31:20 +0100" User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/21.2 (Sumida) X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > (let ((tz (car (current-time-zone)))) > (format "Date: %s %s%04d" (current-time-string time) > (if (> tz 0) "+" "-") (abs (/ tz 36)))) > > won't work very well for non-integral time zones - India will appear > as +0550 instead of +0530.] Yup. Fix in Pterodactyl Gnus v0.95. > The Emacs documentation doesn't describe (current-time) very well. It > says, "the current time, as the number of seconds since 1970-01-01 > 00:00:00" - without specifying a time zone for that epoch... Hm. Ooop -- the clock on this machine runs 12 minutes fast. Er, uhm. Anyway, (current-time-string (current-time)) => "Fri Jul 9 22:59:05 1999" which is the local time, here, now. (After fixing the clock.) But what am I getting at? Uhm -- perhaps the bug isn't in the generating-the-Data-header part, but in the parsing part? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen