Emacs Lisp中是否有任何與PHP's strtotime
function類似的功能? (其實據我所知它實現relative items of the GNU date input formats。)strtotime for Emacs Lisp
在PHP我可以寫
echo strtotime("+2 months"); //1258891352
echo strtotime("-3 months +2 weeks"); //1246952239
其返回相應的UNIX時間戳。
已檢查的組織模式的日期設施,但未找到此功能。謝謝。 – 2009-09-22 19:06:05
函數'org-read-date-analyze不是一個命令,而是在org.el中定義的第13155行(最新的org.el:http://repo.or.cz/w/org-mode。 git/blob/HEAD:/lisp/org.el) – 2009-12-04 19:51:02
我接受這個答案。它並不涵蓋'strtotime'提供的完全相同的功能,但它的目標是相似的,並且是本地解決方案。 – 2010-03-29 16:07:59