emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `format-time-string', TZ and environement variables


From: Ted Zlatanov
Subject: Re: `format-time-string', TZ and environement variables
Date: Mon, 27 Feb 2012 09:02:06 -0500
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux)

On Fri, 24 Feb 2012 20:24:38 -0800 Lars Magne Ingebrigtsen <address@hidden> 
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]