From: Chris Hanson Date: Tue, 21 Feb 1995 23:12:47 +0000 (+0000) Subject: Put bullet-proofing code into OS2/FILE-TIME->STRING. It turns out X-Git-Tag: 20090517-FFI~6617 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0907e55241ef72fb5eda35e98aff2fc406bd5a1a;p=mit-scheme.git Put bullet-proofing code into OS2/FILE-TIME->STRING. It turns out that CD-ROM root directories have unusual time stamps. --- diff --git a/v7/src/runtime/os2prm.scm b/v7/src/runtime/os2prm.scm index f98b3ee02..eb2517044 100644 --- a/v7/src/runtime/os2prm.scm +++ b/v7/src/runtime/os2prm.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: os2prm.scm,v 1.6 1995/02/14 00:35:23 cph Exp $ +$Id: os2prm.scm,v 1.7 1995/02/21 23:12:47 cph Exp $ Copyright (c) 1994-95 Massachusetts Institute of Technology @@ -117,7 +117,9 @@ MIT in each case. |# (year (quotient time 16))) (string-append (vector-ref '#("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec") - (- month 1)) + (if (<= 1 month 12) + (- month 1) + 0)) " " (string-pad-left (number->string day) 2 #\space) " "