[Haskell-cafe] Re: DiffTime in Data.Time

Ashley Yakeley ashley at semantic.org
Mon Oct 2 21:21:03 EDT 2006

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

More information about the Haskell-Cafe mailing list