src/cal-heatmap.js
function(d, range){
		"use strict";

		var start = new Date(d.getFullYear(), 0);
		var stop = null;
		if (range instanceof Date) {
			stop = new Date(range.getFullYear(), 0);
		} else {
			stop = new Date(d.getFullYear()+range, 0);
		}

		return d3.time.years(Math.min(start, stop), Math.max(start, stop));
	}
function(d, range){
		"use strict";

		var start = new Date(d.getFullYear(), 0);
		var stop = null;
		if (range instanceof Date) {
			stop = new Date(range.getFullYear(), 0);
		} else {
			stop = new Date(d.getFullYear()+range, 0);
		}

		return d3.time.years(Math.min(start, stop), Math.max(start, stop));
	}
function ( d , range ) { "use strict" ; var start = new Date ( d . getFullYear ( ) , 0 ) ; var stop = null ; if ( range instanceof Date ) { stop = new Date ( range . getFullYear ( ) , 0 ) ; } else { stop = new Date ( d . getFullYear ( ) + range , 0 ) ; } return d3 . time . years ( Math . min ( start , stop ) , Math . max ( start , stop ) ) ; }
Return all the years between 2 dates

@param  Date	d	date	A date
@param  int|date	range	Number of minutes in the range, or a stop date
@return array	An array of hours
Return all the years between 2 dates