diff --git a/contrapunctus/cp-pem.el b/contrapunctus/cp-pem.el new file mode 100644 index 0000000..69d8a2d --- /dev/null +++ b/contrapunctus/cp-pem.el @@ -0,0 +1,10 @@ +(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))))