Ok, that's much simpler than I was making it. fromIntegral or fromRational does the trick. Obvious in hindsight, I guess. Thanks!
-Chad On 10/2/06, Ashley Yakeley <[EMAIL PROTECTED]> wrote:
Chad Scherrer wrote: > I'm trying to use Data.Time, and I'm totally confused. DiffTime is > abstract, and I don't see anything that maps into it. How do I > construct one? I would like to then use the result to create a value > of type UTCTime, but it seems (currently) like this might be easier. It's an instance of Num etc. (as seconds). -- Ashley Yakeley Seattle WA
-- _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
