From 6a00ba4f9ee47b35e0e5d212f5ead922d56edde6 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 31 Jul 2001 13:06:09 +0000 Subject: [PATCH] [project @ 2001-07-31 13:06:09 by simonmar] merge ghc/lib/std/Time.hsc rev. 1.19 --- System/Time.hsc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Time.hsc b/System/Time.hsc index 48c5739..a732b5a 100644 --- a/System/Time.hsc +++ b/System/Time.hsc @@ -11,7 +11,7 @@ -- Stability : provisional -- Portability : portable -- --- $Id: Time.hsc,v 1.3 2001/07/31 13:05:33 simonmar Exp $ +-- $Id: Time.hsc,v 1.4 2001/07/31 13:06:09 simonmar Exp $ -- -- The standard Time library. -- @@ -386,9 +386,7 @@ throwAwayReturnPointer fun x y = fun x y >> return () clockToCalendarTime_static :: (Ptr CTime -> IO (Ptr CTm)) -> Bool -> ClockTime -> IO CalendarTime clockToCalendarTime_static fun is_utc (TOD secs psec) = do - putStrLn ("clockToCalendarTime: TOD " ++ show secs ++ " " ++ show psec) withObject (fromIntegral secs :: CTime) $ \ p_timer -> do - case p_timer of Ptr addr -> putStrLn ("const time_t * = " ++ show (I## (addr2Int## addr))) p_tm <- fun p_timer -- can't fail, according to POSIX clockToCalendarTime_aux is_utc p_tm psec -- 1.7.10.4