From 35ab345108cf3b54fb46e486bcb0fb5681d63a8f Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 12 Oct 2017 12:52:17 +0530 Subject: [PATCH] Idea for a Personal Expense Manager --- contrapunctus/cp-pem.el | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 contrapunctus/cp-pem.el 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))))