GNU bug report logs - #641
format-time-string %Z does not work, starting with Emacs 22.2

Previous Next

Packages: emacs, w32;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 1 Aug 2008 16:55:06 UTC

Severity: wishlist

Merged with 9794

Found in versions 22.2, 23.0.60, 24.0.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Juanma Barranquero" <lekktu <at> gmail.com>
To: "Drew Adams" <drew.adams <at> oracle.com>, 641 <at> debbugs.gnu.org
Cc: "Eli Zaretskii" <eliz <at> gnu.org>, bug-gnu-emacs <at> gnu.org
Subject: bug#641: format-time-string %Z does not work, starting with Emacs 22.2
Date: Wed, 6 Aug 2008 22:34:51 +0200
On Wed, Aug 6, 2008 at 21:48, Drew Adams <drew.adams <at> oracle.com> wrote:

>> `format-time-string' is a Lisp interface to the Posix function
>> `strftime' from the standard C library.
>
> That's what I question. Where does it say that that is the mission of
> `format-time-string'? This is a new interpretation, AFAICT. Where does it say
> that `format-time-string' must be implemented only as a transparent front end to
> `strftime'?

At the time the function was introduced, the docstring clearly said:
"The number of options reflects the strftime(3) function."

http://cvs.savannah.gnu.org/viewvc/emacs/emacs/src/editfns.c?r1=1.67&r2=1.68&pathrev=HEAD

Two years later Richard rewrote the docstring and that bit disappeared:

http://cvs.savannah.gnu.org/viewvc/emacs/emacs/src/editfns.c?r1=1.153&r2=1.154&pathrev=HEAD

It is open to interpretation (or asking him) whether the intent was to
detach strftime from format-time-string or not.

 Juanma




This bug report was last modified 13 years and 271 days ago.

Previous Next


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