POSIXTime -package:tztime package:hosc

Convert POSIXTime to Time.
realToFrac of Clock.Posix.getPOSIXTime
get_ct = getCurrentTimeAsPosix
get_pt = getPosixTimeAsPosix
(ct,pt) <- get_ct >>= \t0 -> get_pt >>= \t1 -> return (t0,t1)
print (pt - ct,pt - ct < 1e-5)
Convert Time to POSIXTime.