Re: Format modifier suggestion for format-time-string

Hi,

>> I'd like to suggest the addition of a : modifier, such that
>> (format-time-string "%:z") would generate an RFC 3339-compatible time
>> zone offset.
>
> What a coincidence.  :-)

No coincidence—it was that emacs-devel thread that reminded me of this
issue.

> I've been playing with dropping the gnulib strftime.c into Emacs
> today, and that seems to make %:z work as required:

I'm very happy to hear it!

> I'm guessing this will be for Emacs 24, though.

I suppose I'll go with something like this compatibility test for now:

(let ((test "%:z")) (string-equal test (format-time-string test)))


Thanks again,
Ted

Received on Friday, 19 November 2010 19:37:12 UTC