summaryrefslogtreecommitdiff
path: root/lisp/=timer.el
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-03-02 07:33:41 +0000
committerJim Blandy <jimb@redhat.com>1993-03-02 07:33:41 +0000
commit87d8edfa9b51330ac509383f73bfae815c61d1c8 (patch)
treecb7c1ba5170107aca8aa6d9dd24cd2dd9aad6292 /lisp/=timer.el
parent8dabb266cabf34ac1117b048809cc6b027110bf6 (diff)
downloademacs-87d8edfa9b51330ac509383f73bfae815c61d1c8.tar.gz
* timer.el (run-at-time): Doc fix.
Diffstat (limited to 'lisp/=timer.el')
-rw-r--r--lisp/=timer.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/=timer.el b/lisp/=timer.el
index b743d3caf7f..199a6fe46a0 100644
--- a/lisp/=timer.el
+++ b/lisp/=timer.el
@@ -36,7 +36,19 @@
Arguments are TIME, REPEAT, FUNCTION &rest ARGS.
TIME, a string, can be specified absolutely or relative to now.
REPEAT, an integer number of seconds, is the interval on which to repeat
-the call to the function. If REPEAT is nil, call it just once."
+the call to the function. If REPEAT is nil, call it just once.
+
+Absolute times may be specified in a wide variety of formats;
+Something of the form `HOUR:MIN:SEC TIMEZONE MONTH/DAY/YEAR', where
+all fields are numbers, will work; the format used by the Unix `date'
+command will work too.
+
+Relative times may be specified as a series of numbers followed by units:
+ 1 min denotes one minute from now.
+ min does too.
+ 1 min 5 sec denotes 65 seconds from now.
+ 1 min 2 sec 3 hour 4 day 5 week 6 fortnight 7 month 8 year
+ denotes the sum of all the given durations from now."
(interactive "sRun at time: \nNRepeat interval: \naFunction: ")
(cond ((or (not timer-process)
(memq (process-status timer-process) '(exit signal nil)))