code: function buildSegmentsForEvent(event) {
  		var startDate = event.start;
  		var endDate = exclEndDay(event);
  		var segments = rangeToSegments(startDate, endDate);
  		for (var i=0; i<segments.length; i++) {
  			segments[i].event = event;
  		}
  		return segments;
  	}
docs: Generate an array of segments for a single event. A "segment" is the same data structure that View.rangeToSegments produces, with the addition of the `event` property being set to reference the original event.