"use strict";
exports.__esModule = true;
exports.getCentury = void 0;
var date_fns_1 = require("date-fns");
var getCentury = function (date) {
    var year = (0, date_fns_1.getYear)(date);
    if (year === 0) {
        return 0;
    }
    if (year > 0) {
        return Math.trunc(year / 100) * 100;
    }
    return Math.floor(year / 100) * 100;
};
exports.getCentury = getCentury;
