r10081: add utime-to-posix-time
[kmrcl.git] / datetime.lisp
index f8aca20d74cd6b235c8fcec8b73d151dc783386b..51167a92444fae02ef97aab81809da28f4e6337c 100644 (file)
@@ -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*