Files
echo-nexus/node_modules/react-day-picker/dist/esm/ethiopic/lib/getYear.js
T

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;
}