Files
SnowLuma/.pnpm-store/v11/files/b7/1b7a754b780faed88169e4d03ec2c8a0bfa53c9b0c8b06f7de573782dd3a6e14fb2e2445188a1b5cddb12a765fac529d47ff6c04fad54e893c3bd53ef1f0ee
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

17 lines
704 B
Plaintext

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