11.4.2 Time-of-day specifications

Org mode 会检查每个日程项是否包含具体时刻说明。该时间可以是使其被纳入日程的时间戳的一部分,例如:

<2005-05-10 Tue 19:00>

时间段可以通过两个时间戳指定:

<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>

在条目自身的标题中,类似 ‘12:45’ 或 ‘8:30-1pm’ 这样的时间(段)也可以直接以纯文本形式出现98

如果日程集成了 Emacs 日记(参见 Weekly/daily agenda),日记条目中的时间说明也会被识别。

对于日程显示,Org mode 会提取时间并以标准 24 小时格式作为前缀的一部分展示。前述示例时间在日程中最终会显示为如下形式:

 8:30-13:00 Arthur Dent lies in front of the bulldozer
12:45...... Ford Prefect arrives and takes Arthur to the pub
19:00...... The Vogon reads his poem
20:30-22:15 Marvin escorts the Hitchhikers to the bridge

当日程处于单日模式或显示当天内容时,带时间的条目会嵌入时间网格中,例如:

 8:00...... ------------------
 8:30-13:00 Arthur Dent lies in front of the bulldozer
10:00...... ------------------
12:00...... ------------------
12:45...... Ford Prefect arrives and takes Arthur to the pub
14:00...... ------------------
16:00...... ------------------
18:00...... ------------------
19:00...... The Vogon reads his poem
20:00...... ------------------
20:30-22:15 Marvin escorts the Hitchhikers to the bridge

时间网格可通过变量 org-agenda-use-time-grid 开启或关闭,并可通过 org-agenda-time-grid 进行配置。


Footnotes

(98)

不过,你可以将变量 org-agenda-search-headline-for-time 设置为 nil 来禁用此功能。