From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Date Object
The setMilliseconds() method is used to set the milliseconds of a specified time.
| dateObject.setMilliseconds(millisec) |
| Parameter | Description |
|---|---|
| millisec | Required. A numeric value between 0 and 999 representing the milliseconds |
Note: If the parameter above is specified with a one-digit or two-digit number, JavaScript adds one or two leading zeros in the result.
Note: This method is always used in conjunction with a Date object.
ExampleSet the milliseconds of the current time to 192:
Try it yourself » |
JavaScript Date Object
From http://www.w3schools.com (Copyright Refsnes Data)