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

Sets the hours value in the Date object using Universal Coordinated Time (UTC).

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