The attached patch seems to fix the rounding error that is causing
regression failures on machines with integer datetimes. (Source of error
discovered by Andrew(at)Supernews).ISTM this code needs to be given some
careful analysis - I know it makes my head spin reading it.
cheers
andrew