Files
NapCatQQ/.pnpm-store/v3/files/a9/11eb0ee08c78c856a2e6de4391976b6da6a5b828a1a8ca7b3028dd0f4b4c2519f56c17df1294f7dd42602fe7d3e07da609bbbad857ea00fa71499ce607a028
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

17 lines
687 B
Plaintext

/**
* Subtracts a specified number of minutes from a date.
* 从日期中减去指定数量的分钟。
*
* @param date - The date to subtract minutes from. (要从日期中减去的日期。)
* @param minutes - The number of minutes to subtract. (要减去的分钟数。)
* @returns A new date with the subtracted minutes. (减去分钟后的新日期。)
* @example
* ```ts
* // Subtracting 30 minutes from a date (从日期中减去30分钟)
* const date = new Date('2023-10-01T12:00:00Z');
* subMinutes(date, 30);
* // Returns: 2023-10-01T11:30:00.000Z (返回: 2023-10-01T11:30:00.000Z)
* ```
*/
export default function subMinutes(date: Date, minutes: number): Date;