"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nameFromDates = nameFromDates;
exports.displayLabelFromDates = displayLabelFromDates;
function nameFromDates(start, end) {
    const y1 = start.getUTCFullYear();
    const y2 = end.getUTCFullYear();
    return y1 === y2 ? `${y1}` : `${y1}-${y2}`;
}
function displayLabelFromDates(start, end) {
    const s = start instanceof Date ? start : new Date(start);
    const e = end instanceof Date ? end : new Date(end);
    const y1 = s.getUTCFullYear();
    const y2 = e.getUTCFullYear();
    return y1 === y2 ? `${y1}` : `${y1}\u2013${y2}`;
}
//# sourceMappingURL=academic-year.utils.js.map