Files
NapCatQQ/.pnpm-store/v3/files/0b/46eeaa08da643571d3dd7fe1dba63674e6c282adff45421d51f877495e80b72dd94ad286d2ef37c61dc814d20cf703df9e07469ba56234cf51d347ecb4cc09
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

16 lines
663 B
Plaintext

/**
* Subtracts a specified number of milliseconds from a date.
* 从日期中减去指定的毫秒数。
*
* @param date - The date to subtract milliseconds from. (要从中减去毫秒的日期。)
* @param ms - The number of milliseconds to subtract. (要减去的毫秒数。)
* @returns A new date with the subtracted milliseconds. (减去毫秒后的新日期。)
* @example
* ```typescript
* // Subtract 500 milliseconds from 10/31/2021 5:45:50 PM
* const result = subMilliseconds(new Date(2021, 9, 31, 17, 45, 50, 500), 500);
* //=> Thu Oct 31 2021 17:45:49.000
* ```
*/
export default function subMilliseconds(date: Date, ms: number): Date;