method Date.setHours
Private
Date.setHours(
hours: number,
min?: number,
sec?: number,
ms?: number,
): number

Sets the hour value in the Date object using local time.

Parameters

hours: number

A numeric value equal to the hours value.

optional
min: number

A numeric value equal to the minutes value.

optional
sec: number

A numeric value equal to the seconds value.

optional
ms: number

A numeric value equal to the milliseconds value.

Return Type

number