Files
avz-site/node_modules/react-day-picker/dist/esm/ethiopic/lib/getYear.js
T
2026-05-30 19:59:39 -03:00

12 lines
241 B
JavaScript

import { toEthiopicDate } from "../utils/index.js";
/**
* Get year
*
* @param {Date} date - The original date
* @returns {number} The year
*/
export function getYear(date) {
const { year } = toEthiopicDate(date);
return year;
}