Sets the hours for a specified date according to local time.
| Method of Date | |
| Implemented in: | JavaScript 1.0, NES 2.0
JavaScript 1.3: Added |
| ECMA Version: | ECMA-262 |
hoursValue minutesValue secondsValue secondsValue parameter, you must also specify the minutesValue. msValue msValue parameter, you must also specify the minutesValue and secondsValue. If you do not specify the minutesValue, secondsValue, and msValue parameters, the values returned from the getUTCMinutes, getUTCSeconds, and getMilliseconds methods are used.
If a parameter you specify is outside of the expected range, setHours attempts to update the date information in the Date object accordingly. For example, if you use 100 for secondsValue, the minutes will be incremented by 1 (min + 1), and 40 will be used for seconds.
Page last modified 20:19, 11 Apr 2006 by Ptak82