From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: `format-time-string', TZ and environement variables Date: Mon, 27 Feb 2012 09:02:06 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87y5roqsrl.fsf@lifelogs.com> References: Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330351366 24507 80.91.229.3 (27 Feb 2012 14:02:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 14:02:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 27 15:02:45 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S21A5-0006PR-Cx for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2012 15:02:45 +0100 Original-Received: from localhost ([::1]:54278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S21A4-0003Ve-UW for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2012 09:02:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S219u-0003Ug-7d for emacs-devel@gnu.org; Mon, 27 Feb 2012 09:02:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S219j-0001XM-HN for emacs-devel@gnu.org; Mon, 27 Feb 2012 09:02:34 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:60440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S219j-0001XF-Ar for emacs-devel@gnu.org; Mon, 27 Feb 2012 09:02:23 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S219b-00068s-AF for emacs-devel@gnu.org; Mon, 27 Feb 2012 15:02:15 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Feb 2012 15:02:15 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Feb 2012 15:02:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:SeLkM4F3A29zw4WL43JrZpJOdn8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148818 Archived-At: On Fri, 24 Feb 2012 20:24:38 -0800 Lars Magne Ingebrigtsen wrote: LMI> we should probably have a nice macro for the environment variables, too: LMI> (with-environment-variable ("TZ" "GMT8") LMI> (format-time-string "%a, %d %b %Y %T %z" (apply 'encode-time time))) LMI> Because using `setenv' directly is kinda yucky. I agree it's generally useful to have that macro, except it should take a list: (with-environment-variables (("TZ" . "GMT8")) ...) Ted