From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Danilo Segan Newsgroups: gmane.emacs.devel Subject: Re: format-time-string bug Date: Tue, 13 Apr 2004 04:54:18 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86brlwvb8l.fsf@avet.kvota.net> References: <87zn9g3an9.fsf@kali.intranet> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1081827227 30586 80.91.224.253 (13 Apr 2004 03:33:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 03:33:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 13 05:33:38 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDEg6-0000Gy-00 for ; Tue, 13 Apr 2004 05:33:38 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDEg6-0001dS-00 for ; Tue, 13 Apr 2004 05:33:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDEbB-0007GW-LF for emacs-devel@quimby.gnus.org; Mon, 12 Apr 2004 23:28:33 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BDEb5-0007Ft-KI for emacs-devel@gnu.org; Mon, 12 Apr 2004 23:28:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDE5g-0000kZ-R4 for emacs-devel@gnu.org; Mon, 12 Apr 2004 22:56:32 -0400 Original-Received: from [217.65.194.3] (helo=avet.kvota.net) by monty-python.gnu.org with smtp (Exim 4.30) id 1BDE5Z-0000iW-7F for emacs-devel@gnu.org; Mon, 12 Apr 2004 22:55:54 -0400 Original-Received: (qmail 6858 invoked by uid 1001); 13 Apr 2004 02:54:18 -0000 Original-To: Marcelo Toledo Mail-Followup-To: Marcelo Toledo , emacs-devel@gnu.org In-Reply-To: <87zn9g3an9.fsf@kali.intranet> (Marcelo Toledo's message of "Mon, 12 Apr 2004 21:54:34 -0400") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21551 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21551 Hi Marcelo, Today at 3:54, Marcelo Toledo wrote: > A few days ago I was coding something related to time, then I needed to > use the function `format-time-string=C2=B4 and the code above shows what I > have found wrong: Since you're passing the value of 1970-01-01 00:00:03 in GMT as the time-value to format-string, you probably ought to try adding optional parameter to format-time-string:=20 (format-time-string "(%H:%M:%S)" (time-subtract t2 t1) t) ^ note this I somehow suspect that you're in GMT-4 timezone ;) So, I doubt there's any bug here. Cheers, Danilo