emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lispref Timer section


From: Thien-Thi Nguyen
Subject: Re: lispref Timer section
Date: Fri, 30 Mar 2007 09:22:58 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

() Glenn Morris <address@hidden>
() Thu, 29 Mar 2007 21:40:53 -0400

   Do I misunderstand, or is the section "Timers for Delayed Execution"
   in the lispref totally misleading when it speaks about absolute
   values for TIME in run-at-time? It claims that "Absolute times may be
   specified in a wide variety of formats", but this seems false.
   run-at-time uses diary-entry-time, which just recognizes times of day
   in a few simple forms ("11:23pm" etc) . Dates will be at best
   ignored, or at worst be wrongly parsed as times of day.

sounds like a bug.  perhaps `parse-time-string' is better:

 (let ((s "2007-03-30 09:10:11"))
   (list (diary-entry-time s)
         (parse-time-string s)))
 => (2007 (11 10 9 30 3 2007 nil nil nil))

thi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]