next up previous contents
Next: setUTCMilliseconds Up: Methods Previous: setUTCFullYear   Contents


setUTCHours

Description

Sets the hour for the specified Date object in universal time, and returns the new time in milliseconds.


Syntax

date1.setUTCHours(hour[, minute [, second[, millisecond]]])


Parameters

hour
An integer from 0 (midnight) to 23 (11 p.m.).
minute
Optional. An integer from 0 to 59.
second
Optional. An integer from 0 to 59.
millisecond
Optional. An integer from 0 to 999.


Returns

An integer




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.