上文中我们初步介绍查阅日历的29种方法。核心点是对时间的日历单位“日周月年”实行操作。
其中对日历前后滚动的操作有:
上述的方法需要“劳师动众”多个按键,下面我们探讨简便的方法。
大跨度时间单位的日历滚动,就是看对月份,季度以及年份的操作。
我们还可以数算选定区域的日子,选定区域内按键M-=调用函数calendar-count-days-region。
首先查看当前日期在一年中的位置,按键p d调用命令 (calendar-print-day-of-year)
其次,我们可以重新绘制日历 C-c C-l (calendar-redraw).
最后,我们可以在calendar窗口中对文本实施远程控制,按空格键或者S-
按键q退出当前的日历模式。
节假日
在当前日期上按键“h”调用(calendar-cursor-holidays),按键x(calendar-mark-holidays)标记假期,按键u(calendar-unmark)取消标注假期,按键a(calendar-list-holidays)列出来当前窗口的所有假期。
日出日落
我们可以在当前日期上按键S(或者M-x sunrise-sunset)查看当日的日出和日落时间,同时加上numeric arguments的C-u M-x sunrise-sunset查看指定日期的日出日落,更加可以M-x calendar-sunrise-sunset-month查看当日的日出和日落时间。
当然,很重要的一点,我们得设置好当前的坐标。
(setq calendar-latitude 40.1)
(setq calendar-longitude -88.2)
(setq calendar-location-name "Urbana, IL") (setq calendar-latitude 40.1)
(setq calendar-longitude -88.2)
(setq calendar-location-name "Urbana, IL")
月相
在当前日期上按键M(调用calendar-lunar-phases),查看当前3个月视图的月相。而M-x调用函数lunar-phases显示指定日期附近3个月的月相。
页面更新:2024-05-02
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号