[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Format modifier suggestion for format-time-string

From: Edward O'Connor
Subject: Re: Format modifier suggestion for format-time-string
Date: Fri, 19 Nov 2010 11:36:19 -0800


>> 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

> 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,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]