test DistanceOfTime