setUTCSeconds

fun setUTCSeconds(seconds: Int, milliseconds: Int = definedExternally): Int(source)

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

Parameters

seconds

A numeric value equal to the seconds value.

milliseconds

A numeric value equal to the milliseconds value.

MDN Reference