[Time] modified DateInterval and fixed some errors.