diff options
| author | Paul Eggert | 2011-08-13 22:11:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-13 22:11:36 -0700 |
| commit | 358e1dd2b2e984069dc761ee4266efdad33a213f (patch) | |
| tree | 24932c1e3dd81a084d9c0434868de7d72024f0ba /src/editfns.c | |
| parent | 3019ceda0d720be62102bd76d52cfcab67ac012a (diff) | |
| parent | 377538cbcf8c1f0aab9b40ed2ff3df414904272f (diff) | |
| download | emacs-358e1dd2b2e984069dc761ee4266efdad33a213f.tar.gz emacs-358e1dd2b2e984069dc761ee4266efdad33a213f.zip | |
Merge from trunk.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 11 |
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 | ||
| 1698 | For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) | 1698 | For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". |
| 1699 | |||
| 1700 | usage: (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; | |||
| 2051 | DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, | 2053 | DEFUN ("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. |
| 2053 | If TZ is nil, use implementation-defined default time zone information. | 2055 | If TZ is nil, use implementation-defined default time zone information. |
| 2054 | If TZ is t, use Universal Time. */) | 2056 | If TZ is t, use Universal Time. |
| 2057 | |||
| 2058 | Instead of calling this function, you typically want (setenv "TZ" TZ). | ||
| 2059 | That changes both the environment of the Emacs process and the | ||
| 2060 | variable `process-environment', whereas `set-time-zone-rule' affects | ||
| 2061 | only the former. */) | ||
| 2055 | (Lisp_Object tz) | 2062 | (Lisp_Object tz) |
| 2056 | { | 2063 | { |
| 2057 | const char *tzstring; | 2064 | const char *tzstring; |