Added closed parameter to the DatetimeIndex constructor.