Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Time/ToCalendarTime_.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


module Time where

import NHC.GreenCard
import DClockTime
import DCalendarTime

foreign import ccall hs_toCalendarTime :: Int -> IO (Int,Int,Int,Int,Int,Int,Int,Int,Int,PackedString,Int,Bool)

toCalendarTime :: ClockTime -> IO CalendarTime
toCalendarTime (CT ct) =
  do (res1,res2,res3,res4,res5,res6,res7,res8,res9,res10,res11,res12) <- hs_toCalendarTime ct
     return (CalendarTime res1 (toEnum res2) res3 res4 res5 res6 (toInteger res7) (toEnum res8) res9 (fromCString res10) res11 res12)


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].