Files
NapCatQQ/.pnpm-store/v3/files/d0/5b0a0386c8dbfe7dbe1ce4fba3306729c143939812a63297d0e2d0936580fe97e539a3666094e84262b5781376226a76a35f055a26954261b464c27ce847cb
T
TanTan e311ca3275
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
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
561 B
Plaintext

/**
* Subtracts a specified number of days from a date.
* 从日期中减去指定数量的天数。
*
* @param date - The date to subtract days from. (要减去天数的日期。)
* @param days - The number of days to subtract. (要减去的天数。)
* @returns A new date with the subtracted days. (减去天数后的新日期。)
* @example
* ```ts
* const newDate = subDays(new Date(), 5);
* console.log(newDate); // Outputs the date 5 days ago (输出5天前的日期)
* ```
*/
export default function subDays(date: Date, days: number): Date;