contents   index   previous   next



Date setHours()

syntax:

Date.setHours(hour[, minute[, second[,

              millisecond]]])

where:

hour - an hour in a day.

 

minute - a minute in an hour.

 

second - a second in a minute.

 

millisecond - a millisecond in a second.

 

return:

number - time in milliseconds as set.

 

description:

This method sets the hour, as a number from 0 to 23, of a Date object to the parameter hours. Midnight is 0, and 11 p.m. is 23.

 

The parameter minute is the same as for Date setMinutes().

 

The parameter second is the same as for Date setSeconds().

 

The parameter milliseconds is the same as for Date setMilliseconds().

 

 


Date setMilliseconds()