Files
NapCatQQ/.pnpm-store/v3/files/79/6b9cea211cd8adff68d584bebc6a369c7d2d68ff80c11a6d5afa8eb0dcec781784644ea73b88cf91991f1e90f611f4a52fe4ebe3e2e69be75ef02e98de619c
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

11 lines
377 B
Plaintext

"use strict";
const absFloor = require("./absFloor-CImRXpov.js");
const monthDiff = require("./monthDiff-DFAMKa42.js");
const parse = require("./parse.js");
function diffInYears(date, input, asFloat) {
const parsed = parse(input);
const output = monthDiff.monthDiff(date, parsed) / 12;
return asFloat ? output : absFloor.absFloor(output);
}
module.exports = diffInYears;