目前,我的RSS Feed使用此功能显示日期
(format-time-string "%Y-%m-%d %H:%M" (seconds-to-time date))
我希望显示日期" N天前"
这可以用emacs lisp吗?
答案 0 :(得分:0)
试试这个:
(format "%d days ago"
(floor
(/ (float-time (time-subtract (current-time) (seconds-to-time date)))
(* 60 60 24))))