-
-
Save kyanny/39682b1577120f6789fa7a4a70ee1294 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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