aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPaul Eggert2011-08-13 22:11:36 -0700
committerPaul Eggert2011-08-13 22:11:36 -0700
commit358e1dd2b2e984069dc761ee4266efdad33a213f (patch)
tree24932c1e3dd81a084d9c0434868de7d72024f0ba /src/editfns.c
parent3019ceda0d720be62102bd76d52cfcab67ac012a (diff)
parent377538cbcf8c1f0aab9b40ed2ff3df414904272f (diff)
downloademacs-358e1dd2b2e984069dc761ee4266efdad33a213f.tar.gz
emacs-358e1dd2b2e984069dc761ee4266efdad33a213f.zip
Merge from trunk.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 577263c5aea..297f7b6d7e4 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1695,7 +1695,9 @@ The modifiers are `E' and `O'. For certain characters X,
1695%EX is a locale's alternative version of %X; 1695%EX is a locale's alternative version of %X;
1696%OX is like %X, but uses the locale's number symbols. 1696%OX is like %X, but uses the locale's number symbols.
1697 1697
1698For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) 1698For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z".
1699
1700usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) */)
1699 (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object universal) 1701 (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object universal)
1700{ 1702{
1701 time_t value; 1703 time_t value;
@@ -2051,7 +2053,12 @@ static char *initial_tz;
2051DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, 2053DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0,
2052 doc: /* Set the local time zone using TZ, a string specifying a time zone rule. 2054 doc: /* Set the local time zone using TZ, a string specifying a time zone rule.
2053If TZ is nil, use implementation-defined default time zone information. 2055If TZ is nil, use implementation-defined default time zone information.
2054If TZ is t, use Universal Time. */) 2056If TZ is t, use Universal Time.
2057
2058Instead of calling this function, you typically want (setenv "TZ" TZ).
2059That changes both the environment of the Emacs process and the
2060variable `process-environment', whereas `set-time-zone-rule' affects
2061only the former. */)
2055 (Lisp_Object tz) 2062 (Lisp_Object tz)
2056{ 2063{
2057 const char *tzstring; 2064 const char *tzstring;