Added doctest to getEndTime()