Skip to content

Instantly share code, notes, and snippets.

@kyanny kyanny/a.el
Created Jan 17, 2019

Embed
What would you like to do?
(let* ((elapsed
(float-time
(time-subtract
(date-to-time "2019-01-17 18:05")
(date-to-time "2019-01-17 13:19"))))
(in_minutes (/ elapsed 60))
(in_hours (/ in_minutes 60))
(remained_minutes (mod in_minutes 60)))
(format "%d hours %d minutes" in_hours remained_minutes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.