import e from "./interval.js";
//#region ../../node_modules/d3-time/src/year.js
var t = e(function(e) {
	e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, function(e, t) {
	e.setFullYear(e.getFullYear() + t);
}, function(e, t) {
	return t.getFullYear() - e.getFullYear();
}, function(e) {
	return e.getFullYear();
});
t.every = function(t) {
	return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : e(function(e) {
		e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
	}, function(e, n) {
		e.setFullYear(e.getFullYear() + n * t);
	});
}, t.range;
//#endregion
export { t as default };

//# sourceMappingURL=year.js.map