setUTCHours

fun setUTCHours(hours: Int, minutes: Int = definedExternally, seconds: Int = definedExternally, milliseconds: Int = definedExternally): Int(source)

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

Parameters

hours

A numeric value equal to the hours value.

minutes

A numeric value equal to the minutes value.

seconds

A numeric value equal to the seconds value.

milliseconds

A numeric value equal to the milliseconds value.

MDN Reference