myDate.setHours( hours, [ mins ], [ secs ], [ ms ] ) in ECMAScript 262

Set the hour number in the local timezone.

Arguments

nametypedescription
hours Number The new hour number, expressed
mins Number [optional] The new minute number, express
secs Number [optional] The new second number, express
ms Number [optional] The new milliseconds, expresse
Return Type
Number

Description

If the optional parameters are omitted, they are left unchanged in the date object.