emacs: formatovani datumu

Pavel Janík Pavel na Janik.cz
Středa Únor 6 14:08:30 CET 2002


   From: Polak Michal <Michal.Polak na tconsult.cz>
   Date: Wed, 6 Feb 2002 13:56:40 +0100

   > (setq calendar-date-display-form '((format "%4s-%2s-%2s" year month day)))
   > (message (calendar-date-string (calendar-current-date)))
   > 
   > dostanu vysledek:
   > 
   > "2002- 2- 6"
   > 
   > Nevite, jak jednoduse dostat vysledek
   > 
   > "2002-02-06"

(format-time-string "%Y-%m-%d") ;-)
-- 
Pavel Janík

My god! Kai is actually _asking_ a question. Is this a first? :)
                  -- Seb James in gnu.emacs.help


Další informace o konferenci Editors