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