12 lines
241 B
JavaScript
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;
|
|
}
|