UEA-Prodem

This commit is contained in:
2026-06-10 12:38:42 -03:00
parent 3f33154e16
commit c41625e542
9352 changed files with 1128292 additions and 14752 deletions
+11
View File
@@ -0,0 +1,11 @@
import { toGregorianDate, toHijriDate } from "../utils/conversion.js";
import { getDaysInMonth } from "../utils/daysInMonth.js";
export function endOfMonth(date) {
const hijri = toHijriDate(date);
const day = getDaysInMonth(hijri.year, hijri.monthIndex);
return toGregorianDate({
year: hijri.year,
monthIndex: hijri.monthIndex,
day,
});
}