( date: DateArg<DateType>, options?: StartOfSecondOptions<ResultDate> | undefined, )
| 31 | * //=> Mon Dec 01 2014 22:15:45.000 |
| 32 | */ |
| 33 | export function startOfSecond< |
| 34 | DateType extends Date, |
| 35 | ResultDate extends Date = DateType, |
| 36 | >( |
| 37 | date: DateArg<DateType>, |
| 38 | options?: StartOfSecondOptions<ResultDate> | undefined, |
| 39 | ): ResultDate { |
| 40 | const date_ = toDate(date, options?.in); |
| 41 | date_.setMilliseconds(0); |
| 42 | return date_; |
| 43 | } |
no test coverage detected