Created
May 25, 2014 07:31
-
-
Save snmsts/8d256017eb1b11546383 to your computer and use it in GitHub Desktop.
ymdhms
This file contains hidden or 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 ymdhms (&optional (universal-time (get-universal-time))) | |
(or (ignore-errors (format nil "~{~2,'0d~#[~;:~;:~;_~:;/~]~}" | |
(cdddr (nreverse (multiple-value-list (decode-universal-time universal-time)))))) | |
"not-universaltime")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment