X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=datetime.lisp;h=51167a92444fae02ef97aab81809da28f4e6337c;hp=f8aca20d74cd6b235c8fcec8b73d151dc783386b;hb=b130cfac49f2fc961d48907a15aca5debee2bd89;hpb=9e36114ec80a5a8b58a650a5f80b4d51b43d0ce0 diff --git a/datetime.lisp b/datetime.lisp index f8aca20..51167a9 100644 --- a/datetime.lisp +++ b/datetime.lisp @@ -74,6 +74,9 @@ (defun posix-time-to-utime (time) (+ time +posix-epoch+)) +(defun utime-to-posix-time (utime) + (- utime +posix-epoch+)) + ;; Monthnames taken from net-telent-date to support lml2 (defvar *monthnames*