Javascript Reference
Categories: Date

javascript Date setHours( )

@March 15, 2008, 1:22 a.m.
setHours( )Firefox/Netscape/NN 2 IE 3 ECMA 1  

setHours(hourInt)

  

Sets the hours of the day for an instance of the Date object. The 24-hour time system is used. If you specify an hour beyond the end of the object's current day, the object recalculates the time in the succeeding day(s).

 
Parameters
 
index

A zero-based integer.

 
Returned Value

New date in milliseconds.


Powered by Linode.