* @summary Return the end of an hour for the given date.
9
*
10
* @description
11
* Return the end of an hour for the given date.
12
* The result will be in the local timezone.
13
*
14
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
15
*
16
* @param date - The original date
17
*
18
* @returns The end of an hour
19
*
20
* @example
21
* // The end of an hour for 2 September 2014 11:55:00:
22
* const result = endOfHour(new Date(2014, 8, 2, 11, 55))