diff options
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index 5eed386afb..297f7b6d7e 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -2053,7 +2053,12 @@ static char *initial_tz; DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, doc: /* Set the local time zone using TZ, a string specifying a time zone rule. If TZ is nil, use implementation-defined default time zone information. -If TZ is t, use Universal Time. */) +If TZ is t, use Universal Time. + +Instead of calling this function, you typically want (setenv "TZ" TZ). +That changes both the environment of the Emacs process and the +variable `process-environment', whereas `set-time-zone-rule' affects +only the former. */) (Lisp_Object tz) { const char *tzstring; |