[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Format modifier suggestion for format-time-string
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: Format modifier suggestion for format-time-string |
Date: |
Fri, 19 Nov 2010 20:30:35 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
"Edward O'Connor" <address@hidden> writes:
> 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. :-) I've been playing with dropping the gnulib
strftime.c into Emacs today, and that seems to make %:z work as required:
(format-time-string "%Y-%m-%d %H:%M:%S %:z")
=> "2010-11-19 20:29:33 +01:00"
I'm guessing this will be for Emacs 24, though.
--
(domestic pets only, the antidote for overdose, milk.)
address@hidden * Lars Magne Ingebrigtsen