Improved doctest example for Time and fixed bug in next method