Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Created September 4, 2018 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmercouris/1da6601f8b3627bd1e1e8bc526b23fa9 to your computer and use it in GitHub Desktop.
Save jmercouris/1da6601f8b3627bd1e1e8bc526b23fa9 to your computer and use it in GitHub Desktop.
(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