Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
12 lines
357 B
Plaintext
12 lines
357 B
Plaintext
import { a as absFloor } from "./absFloor-BlD_nfEw.mjs";
|
|
import { m as monthDiff } from "./monthDiff-BZ0YZrA0.mjs";
|
|
import parse from "./parse.mjs";
|
|
function diffInYears(date, input, asFloat) {
|
|
const parsed = parse(input);
|
|
const output = monthDiff(date, parsed) / 12;
|
|
return asFloat ? output : absFloor(output);
|
|
}
|
|
export {
|
|
diffInYears as default
|
|
};
|