格式化当前时间函数
- Format yyyy-mm-dd
(format-time-string "%Y-%m-%d")
;; "2022-11-28"
- Unix Time Format(number of seconds since 1970-01-01)
(format-time-string "%s")
;; "1669620311"
- Names for Month and Week
(format-time-string "%B") ; "November"
(format-time-string "%b") ; "Nov"
(format-time-string "%A") ; "Monday"
(format-time-string "%a") ; "Tue"
- Timezone
(format-time-string "%z")