( date: DateArg<DateType>, options?: EndOfDayOptions<ResultDate> | undefined, )
| 31 | * //=> Tue Sep 02 2014 23:59:59.999 |
| 32 | */ |
| 33 | export function endOfDay< |
| 34 | DateType extends Date, |
| 35 | ResultDate extends Date = DateType, |
| 36 | >( |
| 37 | date: DateArg<DateType>, |
| 38 | options?: EndOfDayOptions<ResultDate> | undefined, |
| 39 | ): ResultDate { |
| 40 | const _date = toDate(date, options?.in); |
| 41 | _date.setHours(23, 59, 59, 999); |
| 42 | return _date; |
| 43 | } |
no test coverage detected