import { getYear } from 'date-fns';
export var getCentury = function (date) {
    var year = getYear(date);
    if (year === 0) {
        return 0;
    }
    if (year > 0) {
        return Math.trunc(year / 100) * 100;
    }
    return Math.floor(year / 100) * 100;
};
