setTime() method sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.
|time||Required||An integer representing the number of milliseconds since 1 January 1970, 00:00:00 UTC.|
Note: Negative values are also accepted.
|Number||Returns the number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date.|
setTime() with Negative Value
In the following example, we subtract 800830825000 milliseconds from January 1, 1970, and display the new date and time.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.