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
356 B
Plaintext
12 lines
356 B
Plaintext
import { a as absFloor } from "./absFloor-BlD_nfEw.mjs";
|
|
import { M as MS_IN_DAY } from "./constants-BuFquuHl.mjs";
|
|
import parse from "./parse.mjs";
|
|
function diffInDays(date, input, asFloat) {
|
|
const parsed = parse(input);
|
|
const output = (+date - +parsed) / MS_IN_DAY;
|
|
return asFloat ? output : absFloor(output);
|
|
}
|
|
export {
|
|
diffInDays as default
|
|
};
|