contents   index   previous   next

Date setUTCHours()


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



hour - an hour in a day.


minute - a minute in an hour.


second - a second in a minute.


millisecond - a millisecond in a second.



number - time in milliseconds as set.



This method sets the UTC 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 setUTCMinutes().


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


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




Date setUTCMilliseconds()