setMilliseconds

fun setMilliseconds(milliseconds: Int): Int(source)

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

Parameters

milliseconds

A numeric value equal to the millisecond value.

MDN Reference