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 f8aca20..51167a9 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 80fa119..c369985 100644 (file)
    #:print-float-units
    #:print-seconds
    #:posix-time-to-utime
+   #:utime-to-posix-time
    
    ;; From random.lisp
    #:seed-random-generator