%(org-insert-time-stamp (org-read-date nil t \"+1d\"))
可以插入当前时间一天后的时间戳,不过没有精确到几时几分。我把 +1d
改为 +1h
后,插入的时间戳就是当前日期,也没有精确到几时几分。
如何才能插入当前时间一小时后的时间戳呢?
%(org-insert-time-stamp (org-read-date nil t \"+1d\"))
可以插入当前时间一天后的时间戳,不过没有精确到几时几分。我把 +1d
改为 +1h
后,插入的时间戳就是当前日期,也没有精确到几时几分。
如何才能插入当前时间一小时后的时间戳呢?
C-h v org-insert-time-stamp
read the doc please
Signature
(org-insert-time-stamp TIME &optional WITH-HM INACTIVE PRE POST EXTRA)
Documentation
Insert a date stamp for the date given by the internal TIME.
See format-time-string for the format of TIME.
WITH-HM means use the stamp format that includes the time of the day.
INACTIVE means use square brackets instead of angular ones, so that the
stamp will not contribute to the agenda.
PRE and POST are optional strings to be inserted before and after the
stamp.
The command returns the inserted time stamp.
so
(org-insert-time-stamp (org-read-date nil t "+1d") t)
原来 WITH-HM
是这么指定的,感谢大佬!