[Haskell-cafe] Re: Displaying fractions of a second from a datediff?

Hugh Perkins hughperkins at gmail.com
Sat Jul 14 16:19:08 EDT 2007

Ok, so for anyone who cares, the answer is, the negative picoseconds should
be added to the seconds to get the final answer:

          let secondsfloat = realToFrac( tdSec timediff ) +
realToFrac(tdPicosec timediff) / 1000000000000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070714/dd899da6/attachment.htm

More information about the Haskell-Cafe mailing list