From: simonmar Date: Tue, 31 Jul 2001 13:06:09 +0000 (+0000) Subject: [project @ 2001-07-31 13:06:09 by simonmar] X-Git-Tag: nhc98-1-18-release~1199 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6a00ba4f9ee47b35e0e5d212f5ead922d56edde6;p=ghc-base.git [project @ 2001-07-31 13:06:09 by simonmar] merge ghc/lib/std/Time.hsc rev. 1.19 --- 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