- showsPrec _ (TOD secs _nsec) =
- showString $ unsafePerformIO $ do
- withObject (fromIntegral secs :: CTime) $ \ p_timer -> do
- p_tm <- localtime p_timer -- can't fail, according to POSIX
- allocaBytes 64 $ \ p_buf -> do -- big enough for error message
- r <- strftime p_buf 50 "%a %b %d %H:%M:%S %Z %Y"## p_tm
- if r == 0
- then return "ClockTime.show{Time}: internal error"
- else peekCString p_buf
-