从org-mode导出html:自定义日期格式 [英] Export html from org-mode: custom date format
本文介绍了从org-mode导出html:自定义日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将组织文件导出为html。我在Emacs 24上使用组织模式7.9.3f。
如何在后台中获得自定义时间格式?
我尝试设置变量org-export-html-postamble格式为
(setq org-export- html-postamble-format
'((en< p class = \date \>日期:%d< / p>)))
然后时间格式如下所示:2013-07-16T21:20 + 0200
我希望只有日期:2013-07-16,即%y-%m-%d。
解决方案
您应该尝试:
(setq org-export-html-date-format-string%Y-%m - %d)
I am exporting org files to html. I am using Org-mode 7.9.3f with Emacs 24.
How can I get a custom time format in the postamble?
I tried setting the variable org-export-html-postamble-format to
(setq org-export-html-postamble-format
'(("en" "<p class=\"date\">Date: %d</p>")))
Then the time format looks like this: 2013-07-16T21:20+0200
I would like to have only the date: 2013-07-16, i.e %y-%m-%d.
解决方案
You should try:
(setq org-export-html-date-format-string "%Y-%m-%d")
这篇关于从org-mode导出html:自定义日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文