UEA-Prodem
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isSameMonth = isSameMonth;
|
||||
const conversion_js_1 = require("../utils/conversion.js");
|
||||
function isSameMonth(dateLeft, dateRight) {
|
||||
const hijriLeft = (0, conversion_js_1.toHijriDate)(dateLeft);
|
||||
const hijriRight = (0, conversion_js_1.toHijriDate)(dateRight);
|
||||
return (hijriLeft.year === hijriRight.year &&
|
||||
hijriLeft.monthIndex === hijriRight.monthIndex);
|
||||
}
|
||||
Reference in New Issue
Block a user