From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Edward O'Connor" Newsgroups: gmane.emacs.devel,gmane.org.w3c.miscellaneous Subject: Re: Format modifier suggestion for format-time-string Date: Fri, 19 Nov 2010 11:36:19 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290195416 16469 80.91.229.12 (19 Nov 2010 19:36:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 19:36:56 +0000 (UTC) Cc: www-archive@w3.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 19 20:36:52 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJWlP-0003kr-1X for ged-emacs-devel@m.gmane.org; Fri, 19 Nov 2010 20:36:51 +0100 Original-Received: from localhost ([127.0.0.1]:43753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJWlO-0003Vl-Cj for ged-emacs-devel@m.gmane.org; Fri, 19 Nov 2010 14:36:50 -0500 Original-Received: from [140.186.70.92] (port=58342 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJWlH-0003Uz-11 for emacs-devel@gnu.org; Fri, 19 Nov 2010 14:36:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJWlF-000221-Pj for emacs-devel@gnu.org; Fri, 19 Nov 2010 14:36:42 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:35073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJWlF-00021v-NB for emacs-devel@gnu.org; Fri, 19 Nov 2010 14:36:41 -0500 Original-Received: by vws10 with SMTP id 10so2655400vws.0 for ; Fri, 19 Nov 2010 11:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Mgk/FB3qSHeA7I5Yx3jonN3kNDyJfAWGswH31mXP9c4=; b=BonHKKOdOiJYfHpr/F8xJ7XoV38ClAwfOyU7nIkGVvlo5uA52EZbqp5Z60a9OKsW/5 ehE1etWrQXM3n6Am7pEARVAifQqs3mR1Gu70mS8YmGNTRqkcui4sVlhCQ3pJSWUmyaTj B4oGbetIn0ySzJF9jcyS4wBZ7eA5R/Cxu0CH4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=egmFk4BcSQ/P7IHWSRWRKL+BtPfi+aAHPxsbZZRdpcTLapjuebrO+2CUj+Z0dIrWiO uyQ/7dQ+V/yNn1jTOR6EnrDvLR+Rwd3n1lZBMCtG2sPPYJvSwHum8YegnHogn8t2G5l2 8+YnjTlISv56DEbtIjzucqZQqFnb0K58COGHY= Original-Received: by 10.229.214.76 with SMTP id gz12mr2107548qcb.196.1290195399932; Fri, 19 Nov 2010 11:36:39 -0800 (PST) Original-Received: by 10.229.224.206 with HTTP; Fri, 19 Nov 2010 11:36:19 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132880 gmane.org.w3c.miscellaneous:3979 Archived-At: 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. =C2=A0:-) No coincidence=E2=80=94it was that emacs-devel thread that reminded me of t= his 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