r10081: add utime-to-posix-time
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 3 Oct 2004 07:15:20 +0000 (07:15 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 3 Oct 2004 07:15:20 +0000 (07:15 +0000)
datetime.lisp
package.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*
index 80fa1190ef066f420157812420b5d24831adbbaf..c369985669d275eafcbcf11415b2252adc2dd98c 100644 (file)
    #:print-float-units
    #:print-seconds
    #:posix-time-to-utime
+   #:utime-to-posix-time
    
    ;; From random.lisp
    #:seed-random-generator