From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9556 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Statistics'R'Us Date: 23 Jan 1997 03:41:45 +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 1035149563 19174 80.91.224.250 (20 Oct 2002 21:32:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:32:43 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id TAA13305 for ; Wed, 22 Jan 1997 19:20:16 -0800 Original-Received: from proletcult.slip.ifi.uio.no (root@xyplex06.uio.no [129.240.154.26]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 23 Jan 1997 04:02:45 +0100 Original-Received: (from larsi@localhost) by proletcult.slip.ifi.uio.no (8.8.2/8.8.2) id DAA03691; Thu, 23 Jan 1997 03:41:47 +0100 Original-To: ding@ifi.uio.no In-Reply-To: visigoth@naiad.fac.cs.cmu.edu's message of 22 Jan 1997 03:00:18 -0500 Original-Lines: 22 X-Mailer: Red Gnus v0.83/Emacs 19.34 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ It looks like you are counting the timezone delta in SECONDS, and > that's just not right. :) :-) > < (tz (aref d1 4)) > < (tzh (substr tz 0 2)) > < (tzm (substr tz 2 4)) > < (tzs (concat (+ (* 3600 tzh) (* 60 tzm)))) Uhm, ah -- there is no `substr' function, and `*' doesn't work on strings, and `concat' doesn't work (well) on numbers. :-) And the zone can be a string like "GMT" and not an hour. But timezone can take care of all this with `timezone-zone-to-minute', which should do the trick, I think. -- (domestic pets only, the antidote for overdose, milk.) larsi@ifi.uio.no * Lars Ingebrigtsen