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 Subject: Re: Can `format-time-string' produce full/extended ISO 8601 times? Date: Thu, 6 Aug 2009 11:47:04 -0700 Message-ID: <3b31caf90908061147x84730efje897bbd96f92eef1@mail.gmail.com> References: <878wi1epta.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249584465 2567 80.91.229.12 (6 Aug 2009 18:47:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 18:47:45 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: MON KEY Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 06 20:47:38 2009 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.50) id 1MZ800-0006zh-Pz for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 20:47:37 +0200 Original-Received: from localhost ([127.0.0.1]:40215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ800-00085N-9d for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 14:47:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ7zu-00085B-UD for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:47:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ7zp-00084l-IZ for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:47:29 -0400 Original-Received: from [199.232.76.173] (port=50820 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ7zp-00084i-Co for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:47:25 -0400 Original-Received: from mail-vw0-f199.google.com ([209.85.212.199]:34865) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ7zo-0001wa-SA for emacs-devel@gnu.org; Thu, 06 Aug 2009 14:47:25 -0400 Original-Received: by vws37 with SMTP id 37so1015834vws.27 for ; Thu, 06 Aug 2009 11:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=qB1EIzoqZe2g9HPZKURKTfDdBpl7aVjSE495EaU6PMg=; b=t6Ct5r9rBOPsVv/6IMK63fdPIhllQWGrZRoDX5tzx+dJ48PeSgZVA/OwXoPBCIhfry XLOwClGDNjsI0xQV1FABvTG3qk/lOAHqrcHXHMOQrJOY3FVZ6Z8PnMHLbKUnsCxLoiQW BC16csneeRgpmb5B43QncQkW/OA5C24eWkx48= 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=lOSK1HqxFV0a9W27nED5eoOH3DulmtLDHZj41FkCPHLwGN/QHNrs1s+NLAK1ZbfDen q1T9mIL+hvGkyos/oo7UnoaRWTZtMxKDfOhWBDsxcfRj4OP6pHr7VHexD/UyjLLYUn6I SVU0nBUdlVsOWD1XHgP1jNVbf3G01SUR6cft8= Original-Received: by 10.220.86.131 with SMTP id s3mr421081vcl.16.1249584444173; Thu, 06 Aug 2009 11:47:24 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.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:113756 Archived-At: > From what I am able to gather the "%z" of the `format-time-string' > spec doesn't produce a colon delimited UTC-offset/ZONE and provides > only for production of the time-numoffset as: FWIW, I have the following code or variations thereof sprinkled throughout several libraries I maintain: (let ((stamp (format-time-string "%Y-%m-%dT%H:%M:%S%z" time))) (format "%s:%s" (substring stamp 0 -2) (substring stamp -2))) Adding the ability for format-time-string to produce the tz colon would be great. Ted