emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: sachawiki: 2004.08.25


From: Daniel Barral
Subject: [emacs-wiki-discuss] Re: sachawiki: 2004.08.25
Date: Fri, 27 Aug 2004 13:37:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4


Next I modify planner-date-to-filename, which is called by planner-today:
This might become simpler, I still don't know if the list (day month year) is of any use somewhere.


This format (day month year) is not useful at all. This now works with calendar.

(defun planner-date-to-filename (date)
  "Return the planner filename corresponding to DATE.
DATE is a list (month day year) or an internal date representation."
  (if (eq european-calendar-style nil)
      (progn (if (= (length date) 3)
                 (format "%04d.%02d.%02d" (elt date 2) (elt date 0) (elt date 
1))
               (if (= (length date) 2)
                   (setq date (decode-time date)))
               (format "%04d.%02d.%02d"       ; year.month.day
                       (elt date 5)
                       (elt date 4)
                       (elt date 3))))
    (progn (if (= (length date) 3)
               (format "%02d.%02d.%04d" (elt date 1) (elt date 0) (elt date 2))
             (if (= (length date) 2)
                 (setq date (decode-time date)))
             (format "%02d.%02d.%04d"   ; day.month.year
                     (elt date 3)
                     (elt date 4)
                     (elt date 5))))))





reply via email to

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