aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c27
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.
1970TIME is specified as (HIGH LOW USEC PSEC), as returned by 1970TIME 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)
1972is also still accepted. 1972is also still accepted. The optional ZONE is omitted or nil for Emacs
1973The optional ZONE is omitted or nil for Emacs local time, t for 1973local time, t for Universal Time, `wall' for system wall clock time,
1974Universal Time, `wall' for system wall clock time, or a string as in 1974or a string as in the TZ environment variable.
1975`set-time-zone-rule' for a time zone rule. 1975
1976The value is a copy of FORMAT-STRING, but with certain constructs replaced 1976The value is a copy of FORMAT-STRING, but with certain constructs replaced
1977by text that describes the specified date and time in TIME: 1977by 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
2086current time. The obsolete form (HIGH . LOW) is also still accepted. 2086current time. The obsolete form (HIGH . LOW) is also still accepted.
2087The optional ZONE is omitted or nil for Emacs local time, t for 2087The optional ZONE is omitted or nil for Emacs local time, t for
2088Universal Time, `wall' for system wall clock time, or a string as in 2088Universal Time, `wall' for system wall clock time, or a string as in
2089`set-time-zone-rule' for a time zone rule. 2089the TZ environment variable.
2090 2090
2091The list has the following nine members: SEC is an integer between 0 2091The list has the following nine members: SEC is an integer between 0
2092and 60; SEC is 60 for a leap second, which only some operating systems 2092and 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,
2151This is the reverse operation of `decode-time', which see. 2151This is the reverse operation of `decode-time', which see.
2152The optional ZONE is omitted or nil for Emacs local time, t for 2152The optional ZONE is omitted or nil for Emacs local time, t for
2153Universal Time, `wall' for system wall clock time, or a string as in 2153Universal 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 2154the TZ environment variable. It can also be a list (as from
2155from `current-time-zone') or an integer (as from `decode-time') 2155`current-time-zone') or an integer (as from `decode-time') applied
2156applied without consideration for daylight saving time. 2156without consideration for daylight saving time.
2157 2157
2158You can pass more than 7 arguments; then the first six arguments 2158You can pass more than 7 arguments; then the first six arguments
2159are used as SECOND through YEAR, and the *last* argument is used as ZONE. 2159are used as SECOND through YEAR, and the *last* argument is used as ZONE.
@@ -2213,7 +2213,7 @@ but this is considered obsolete.
2213 2213
2214The optional ZONE is omitted or nil for Emacs local time, t for 2214The optional ZONE is omitted or nil for Emacs local time, t for
2215Universal Time, `wall' for system wall clock time, or a string as in 2215Universal Time, `wall' for system wall clock time, or a string as in
2216`set-time-zone-rule' for a time zone rule. */) 2216the 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
2291have the form (HIGH . LOW), but this is considered obsolete. 2291have the form (HIGH . LOW), but this is considered obsolete.
2292Optional second arg ZONE is omitted or nil for the local time zone, or 2292Optional second arg ZONE is omitted or nil for the local time zone, or
2293a string as in `set-time-zone-rule'. 2293a string as in the TZ environment variable.
2294 2294
2295Some operating systems cannot provide all this information to Emacs; 2295Some operating systems cannot provide all this information to Emacs;
2296in this case, `current-time-zone' returns a list containing nil for 2296in this case, `current-time-zone' returns a list containing nil for
@@ -2331,8 +2331,11 @@ the data it can't find. */)
2331 2331
2332DEFUN ("set-time-zone-rule", Fset_time_zone_rule, Sset_time_zone_rule, 1, 1, 0, 2332DEFUN ("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.
2334If TZ is nil or `wall', use system wall clock time. If TZ is t, use 2334
2335Universal Time. If TZ is an integer, treat it as in `encode-time'. 2335If TZ is nil or `wall', use system wall clock time; this differs from
2336the usual Emacs convention where nil means current local time. If TZ
2337is t, use Universal Time. If TZ is an integer, treat it as in
2338`encode-time'.
2336 2339
2337Instead of calling this function, you typically want something else. 2340Instead of calling this function, you typically want something else.
2338To temporarily use a different time zone rule for just one invocation 2341To temporarily use a different time zone rule for just one invocation