bug report: picoseconds handling in System.Time
Simon Marlow
simonmarhaskell at gmail.com
Mon Aug 20 09:58:00 EDT 2007
Andrei Paskevich wrote:
> The diffClockTimes function can generate TimeDiff's with
> a negative value of tdPicosec. When you pass such a TimeDiff
> to addToClockTime, the latter may send negative picoseconds
> to toClockTime, provoking the error "picoseconds out of range".
>
> While we are at it, please, teach normalizeTimeDiff to normalize
> tdPicoSeconds, too. This misfeature hangs around for too long :)
>
> Best regards,
> Andrei
>
> P.S. I'm not subscribed to the list, so please cc: me if needed.
There are a number of serious problems with System.Time. If you're doing
calculations involving time periods, I strongly suggest moving to the new
time package (Data.Time etc.).
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list