X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=datetime.lisp;h=51167a92444fae02ef97aab81809da28f4e6337c;hp=f8aca20d74cd6b235c8fcec8b73d151dc783386b;hb=e96b017d2a09ffd9c9279cb4c2341c53f0581022;hpb=78b62107690123d8d7a1a400e4a1d744408a05b1 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*