From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Cc: www-archive@w3.org
Subject: Re: Format modifier suggestion for format-time-string
Date: Fri, 19 Nov 2010 20:30:35 +0100 [thread overview]
Message-ID: <m3fwuxaz6s.fsf@quimbies.gnus.org> (raw)
In-Reply-To: AANLkTimxeUJ5agMxEBYT4+1oEN=jYgUwpUoUfmvt9-qU@mail.gmail.com
"Edward O'Connor" <hober0@gmail.com> 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.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2010-11-19 19:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 19:23 Format modifier suggestion for format-time-string Edward O'Connor
2010-11-19 19:30 ` Lars Magne Ingebrigtsen [this message]
2010-11-19 19:36 ` Edward O'Connor
-- strict thread matches above, loose matches on Subject: below --
2010-11-21 4:48 MON KEY
2010-11-21 17:47 ` Eli Zaretskii
2010-11-21 20:18 ` MON KEY
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3fwuxaz6s.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=www-archive@w3.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.