dotemacs/contrapunctus/cp-pem.el

11 lines
292 B
EmacsLisp
Raw Normal View History

2017-10-12 07:22:17 +00:00
(defun cp/pem-timestamp (date-time)
"Converts user input date and time to UNIX epoch time and
inserts it after point.
A timezone must be specified, or MUST include the timezone!"
(interactive "sDate and time: ")
(insert
(format-time-string
"%s"
(date-to-time date-time))))