summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-11-19 19:22:36 +0000
committerjao <jao@gnu.org>2021-11-19 19:23:03 +0000
commit3aefb1aa9a3ff2d3dc88c17453a2b2651b0befbd (patch)
tree654955f4d4f44a9a20c40d97c16e6e18e95d7aeb /init.org
parent46c7e4ae9e5d884e1e436336cc85fd23d31833b5 (diff)
downloadelibs-3aefb1aa9a3ff2d3dc88c17453a2b2651b0befbd.tar.gz
elibs-3aefb1aa9a3ff2d3dc88c17453a2b2651b0befbd.tar.bz2
completion nits (liking mct)
Diffstat (limited to 'init.org')
-rw-r--r--init.org2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.org b/init.org
index ba9d3da..19d08d7 100644
--- a/init.org
+++ b/init.org
@@ -651,6 +651,7 @@
(jao-notify msg "" (jao-data-file "clock-world-icon.png"))))
(defun jao-time-to-epoch (&optional s)
+ "Transform a time string to an epoch integer in milliseconds."
(interactive)
(let ((s (or s (read-string "Time string: " (thing-at-point 'string)))))
(message "%s = %s"
@@ -658,6 +659,7 @@
(round (* 1000 (time-to-seconds (parse-time-string s)))))))
(defun jao-epoch-to-time (&optional v)
+ "Transform an epoch, given in milliseconds, to a time string."
(interactive)
(let ((v (or v (read-number "Milliseconds: " (thing-at-point 'number)))))
(message "%s = %s" v