[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parsing a date
From: |
ken |
Subject: |
Re: parsing a date |
Date: |
Sun, 23 Dec 2012 19:39:05 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121120 Thunderbird/10.0.11 |
On 12/23/2012 12:55 AM Eric Abrahamsen wrote:
(format-time-string "%Y/%m/%d"
(apply 'encode-time 0 0 0
(nthcdr 3 (parse-time-string "2011-11-15"))))
Nice. I was wanting to do something very close to this awhile back. Of
course the above code is more useful in the context of a function,
something like the below-- which has something missing. What?
(setq ddd "2013-02-11.tail") ;Want to remove tail on string also
(defun ddd
(format-time-string "%A, %B %d, %Y"
(apply 'encode-time 0 0 0
(nthcdr 3 (parse-time-string ddd)))))