Files
NapCatQQ/.pnpm-store/v3/files/1e/b3d44790cbaad06a81620b9698d8c651868308d0012fef2452592f6fe9bf4eb6a8c4fd3ae84f4d87563f023a62d0f9ac79ef6283291f2013261df1cf70fe8a
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

17 lines
735 B
Plaintext

/**
* Adds a specified number of milliseconds to a date.
* 向日期添加指定数量的毫秒。
*
* @param date - The date to add milliseconds to. (要添加毫秒的日期。)
* @param ms - The number of milliseconds to add. (要添加的毫秒数。)
* @returns A new date with the added milliseconds. (添加毫秒后的新日期。)
* @example
* ```ts
* // Adding 5000 milliseconds to a date (向日期添加5000毫秒)
* const originalDate = new Date('2023-10-01T12:00:00');
* addMilliseconds(originalDate, 5000);
* console.log(originalDate.toISOString()); // Outputs: '2023-10-01T12:00:05.000Z' (输出: '2023-10-01T12:00:05.000Z')
* ```
*/
export default function addMilliseconds(date: Date, ms: number): Date;