Created
September 4, 2018 13:35
-
-
Save jmercouris/1da6601f8b3627bd1e1e8bc526b23fa9 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
(defun parse-date (date) | |
(let* ((date (subseq date 5 16)) | |
(parsed-date (chronicity:parse date))) | |
(- | |
(encode-universal-time 0 0 0 | |
(chronicity:day-of parsed-date) | |
(chronicity:month-of parsed-date) | |
(chronicity:year-of parsed-date) | |
0) | |
(encode-universal-time 0 0 0 1 1 1970 0)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment