3

如何在 emacs org-mode 中格式化日期?

例如,在下表中,我希望日期显示为“Aug 29”或“Wed, Aug 29”而不是“<2012-08-29 Wed>”

#+ATTR_HTML: border="2" rules="all" frame="border" align="center" cellpadding="6"
|------+------------------+---------+-------|
| Week | Date             | Speaker | Title |
|------+------------------+---------+-------|
|    / | <>               | <>      | <>    |
|    0 | <2012-08-29 Wed> |         |       |
|    2 | <2012-09-05 Wed> |         |       |
|    3 | <2012-09-12 Wed> |         |       |
|    1 | <2012-09-19 Wed> |         |       |
|    4 | <2012-09-26 Wed> |         |       |
|    5 | <2012-10-03 Wed> |         |       |
|    6 | <2012-10-10 Wed> |         |       |
|    7 | <2012-10-17 Wed> |         |       |
|    8 | <2012-10-24 Wed> |         |       |
|    9 | <2012-10-31 Wed> |         |       |
|   10 | <2013-03-07 Thu> |         |       |
|------+------------------+---------+-------|
#+TBLFM: @3$1 = 0::$1 = @-1$1 + 1 ::@3$2 = <Aug 29, 2012>::$2 = @-1$2 + 7
4

1 回答 1

3

自定义日期格式应该会有所帮助。它将使用您自己的自定义格式显示时间戳。

于 2012-08-05T22:23:14.613 回答