Name

setTime() — NN 2 IE J1 ECMA 1

Synopsis

setTime(msInt)

Sets the Date object to the number of milliseconds since January 1, 1970. This method alters the value of the instance of the Date object.

Returned Value

New date in milliseconds.

Parameters

msInt

Integer.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.