( date: DateArg<DateType>, amount: number, options?: SubMillisecondsOptions<ResultDate> | undefined, )
| 21 | * @returns The new date with the milliseconds subtracted |
| 22 | */ |
| 23 | export function subMilliseconds< |
| 24 | DateType extends Date, |
| 25 | ResultDate extends Date = DateType, |
| 26 | >( |
| 27 | date: DateArg<DateType>, |
| 28 | amount: number, |
| 29 | options?: SubMillisecondsOptions<ResultDate> | undefined, |
| 30 | ): ResultDate { |
| 31 | return addMilliseconds(date, -amount, options); |
| 32 | } |
no test coverage detected