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