diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/editfns.c b/src/editfns.c index 2ac0537eddb..94b949583ad 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1969,10 +1969,10 @@ DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0, | |||
| 1969 | doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted. | 1969 | doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted. |
| 1970 | TIME is specified as (HIGH LOW USEC PSEC), as returned by | 1970 | TIME is specified as (HIGH LOW USEC PSEC), as returned by |
| 1971 | `current-time' or `file-attributes'. The obsolete form (HIGH . LOW) | 1971 | `current-time' or `file-attributes'. The obsolete form (HIGH . LOW) |
| 1972 | is also still accepted. | 1972 | is also still accepted. The optional ZONE is omitted or nil for Emacs |
| 1973 | The optional ZONE is omitted or nil for Emacs local time, t for | 1973 | local time, t for Universal Time, `wall' for system wall clock time, |
| 1974 | Universal Time, `wall' for system wall clock time, or a string as in | 1974 | or a string as in the TZ environment variable. |
| 1975 | `set-time-zone-rule' for a time zone rule. | 1975 | |
| 1976 | The value is a copy of FORMAT-STRING, but with certain constructs replaced | 1976 | The value is a copy of FORMAT-STRING, but with certain constructs replaced |
| 1977 | by text that describes the specified date and time in TIME: | 1977 | by text that describes the specified date and time in TIME: |
| 1978 | 1978 | ||
| @@ -2086,7 +2086,7 @@ as from `current-time' and `file-attributes', or nil to use the | |||
| 2086 | current time. The obsolete form (HIGH . LOW) is also still accepted. | 2086 | current time. The obsolete form (HIGH . LOW) is also still accepted. |
| 2087 | The optional ZONE is omitted or nil for Emacs local time, t for | 2087 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 2088 | Universal Time, `wall' for system wall clock time, or a string as in | 2088 | Universal Time, `wall' for system wall clock time, or a string as in |
| 2089 | `set-time-zone-rule' for a time zone rule. | 2089 | the TZ environment variable. |
| 2090 | 2090 | ||
| 2091 | The list has the following nine members: SEC is an integer between 0 | 2091 | The list has the following nine members: SEC is an integer between 0 |
| 2092 | and 60; SEC is 60 for a leap second, which only some operating systems | 2092 | and 60; SEC is 60 for a leap second, which only some operating systems |
| @@ -2151,9 +2151,9 @@ DEFUN ("encode-time", Fencode_time, Sencode_time, 6, MANY, 0, | |||
| 2151 | This is the reverse operation of `decode-time', which see. | 2151 | This is the reverse operation of `decode-time', which see. |
| 2152 | The optional ZONE is omitted or nil for Emacs local time, t for | 2152 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 2153 | Universal Time, `wall' for system wall clock time, or a string as in | 2153 | Universal Time, `wall' for system wall clock time, or a string as in |
| 2154 | `set-time-zone-rule' for a time zone rule. It can also be a list (as | 2154 | the TZ environment variable. It can also be a list (as from |
| 2155 | from `current-time-zone') or an integer (as from `decode-time') | 2155 | `current-time-zone') or an integer (as from `decode-time') applied |
| 2156 | applied without consideration for daylight saving time. | 2156 | without consideration for daylight saving time. |
| 2157 | 2157 | ||
| 2158 | You can pass more than 7 arguments; then the first six arguments | 2158 | You can pass more than 7 arguments; then the first six arguments |
| 2159 | are used as SECOND through YEAR, and the *last* argument is used as ZONE. | 2159 | are used as SECOND through YEAR, and the *last* argument is used as ZONE. |
| @@ -2213,7 +2213,7 @@ but this is considered obsolete. | |||
| 2213 | 2213 | ||
| 2214 | The optional ZONE is omitted or nil for Emacs local time, t for | 2214 | The optional ZONE is omitted or nil for Emacs local time, t for |
| 2215 | Universal Time, `wall' for system wall clock time, or a string as in | 2215 | Universal Time, `wall' for system wall clock time, or a string as in |
| 2216 | `set-time-zone-rule' for a time zone rule. */) | 2216 | the TZ environment variable. */) |
| 2217 | (Lisp_Object specified_time, Lisp_Object zone) | 2217 | (Lisp_Object specified_time, Lisp_Object zone) |
| 2218 | { | 2218 | { |
| 2219 | time_t value = lisp_seconds_argument (specified_time); | 2219 | time_t value = lisp_seconds_argument (specified_time); |
| @@ -2290,7 +2290,7 @@ instead of using the current time. The argument should have the form | |||
| 2290 | `current-time' and from `file-attributes'. SPECIFIED-TIME can also | 2290 | `current-time' and from `file-attributes'. SPECIFIED-TIME can also |
| 2291 | have the form (HIGH . LOW), but this is considered obsolete. | 2291 | have the form (HIGH . LOW), but this is considered obsolete. |
| 2292 | Optional second arg ZONE is omitted or nil for the local time zone, or | 2292 | Optional second arg ZONE is omitted or nil for the local time zone, or |
| 2293 | a string as in `set-time-zone-rule'. | 2293 | a string as in the TZ environment variable. |
| 2294 | 2294 | ||
| 2295 | Some operating systems cannot provide all this information to Emacs; | 2295 | Some operating systems cannot provide all this information to Emacs; |
| 2296 | in this case, `current-time-zone' returns a list containing nil for | 2296 | in this case, `current-time-zone' returns a list containing nil for |
| @@ -2331,8 +2331,11 @@ the data it can't find. */) | |||
| 2331 | 2331 | ||
| 2332 | DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, | 2332 | DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, |
| 2333 | doc: /* Set the Emacs local time zone using TZ, a string specifying a time zone rule. | 2333 | doc: /* Set the Emacs local time zone using TZ, a string specifying a time zone rule. |
| 2334 | If TZ is nil or `wall', use system wall clock time. If TZ is t, use | 2334 | |
| 2335 | Universal Time. If TZ is an integer, treat it as in `encode-time'. | 2335 | If TZ is nil or `wall', use system wall clock time; this differs from |
| 2336 | the usual Emacs convention where nil means current local time. If TZ | ||
| 2337 | is t, use Universal Time. If TZ is an integer, treat it as in | ||
| 2338 | `encode-time'. | ||
| 2336 | 2339 | ||
| 2337 | Instead of calling this function, you typically want something else. | 2340 | Instead of calling this function, you typically want something else. |
| 2338 | To temporarily use a different time zone rule for just one invocation | 2341 | To temporarily use a different time zone rule for just one invocation |