TimeRange updated to accept TimeRange object as input.