Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Time/ToUTCTime_.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_toUTCTime :: Int -> (Int,Int,Int,Int,Int,Int,Int,Int,Int,PackedString,Int,Bool)

toUTCTime :: ClockTime -> CalendarTime
toUTCTime (CT ct) =
  let (res1,res2,res3,res4,res5,res6,res7,res8,res9,res10,res11,res12) = hs_toUTCTime ct in
  (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 webmaster@9p.io.