( date: DateArg<DateType>, amount: number, options?: AddHoursOptions<ResultDate> | undefined, )
| 32 | * //=> Fri Jul 11 2014 01:00:00 |
| 33 | */ |
| 34 | export function addHours< |
| 35 | DateType extends Date, |
| 36 | ResultDate extends Date = DateType, |
| 37 | >( |
| 38 | date: DateArg<DateType>, |
| 39 | amount: number, |
| 40 | options?: AddHoursOptions<ResultDate> | undefined, |
| 41 | ): ResultDate { |
| 42 | return addMilliseconds(date, amount * millisecondsInHour, options); |
| 43 | } |
no test coverage detected