Core JavaScript 1.5 Reference:Global Objects:Date:setMilliseconds
From MDC
Contents |
[edit] Summary
Sets the milliseconds for a specified date according to local time.
| Method of Date | |
| Implemented in: | JavaScript 1.3 |
| ECMA Version: | ECMA-262 |
[edit] Syntax
setMilliseconds(millisecondsValue)
[edit] Parameters
-
millisecondsValue - A number between 0 and 999, representing the milliseconds.
[edit] Description
If you specify a number outside the expected range, the date information in the Date object is updated accordingly. For example, if you specify 1005, the number of seconds is incremented by 1, and 5 is used for the milliseconds.
[edit] Examples
[edit] Example: Using setMilliseconds
theBigDay = new Date(); theBigDay.setMilliseconds(100);