setTime

.setTime( hour, minute, second )

Sets the current time on this object to the values given. Note that the current number of milliseconds will be left unchanged.

.setTime( hour, minute, second, milliseconds )

Sets the time to the values given, and includes the milliseconds parameter.

This method returns 'this' Time object to allow you to chaining calls.

See also

setDate - setDateTime