setSeconds

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

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

Parameters

seconds

A numeric value equal to the seconds value.

milliseconds

A numeric value equal to the milliseconds value.

MDN Reference