GNU bug report logs - #23600
25.1.50; encode-time returns wrong result

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Sun, 22 May 2016 22:12:01 UTC

Severity: normal

Found in version 25.1.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23600: closed (25.1.50; encode-time returns wrong result)
Date: Tue, 14 Jun 2016 14:41:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 14 Jun 2016 07:40:10 -0700
with message-id <5760174A.8090800 <at> cs.ucla.edu>
and subject line Re: 25.1.50; encode-time returns wrong result
has caused the debbugs.gnu.org bug report #23600,
regarding 25.1.50; encode-time returns wrong result
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23600: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23600
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; encode-time returns wrong result
Date: Mon, 23 May 2016 07:10:54 +0900
When I evaluate the below code on Emacs (trunk, MSYS2), it returns
wrong result.

(list
 ;; local time-zone is JST-9 in my environment.
 (encode-time 0 02 23  22 5 2016 nil)
 (encode-time 0 02 23  22 5 2016 '(32400 "JST"))
 (encode-time 0 02 23  22 5 2016 32400))

-> ((22337 48088) (22338 11352) (22338 43752))

The first element of the result depends on local time-zone.  But the
second and the last element should be (22337 48088).

-- 
Kazuhiro Ito


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 23600-done <at> debbugs.gnu.org
Subject: Re: 25.1.50; encode-time returns wrong result
Date: Tue, 14 Jun 2016 07:40:10 -0700
Thanks for checking; closing the bug.


This bug report was last modified 9 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.