Added contains functionality to timerange.