setDateTime

.setDateTime( year, month, day, hour, minute, second )

This allows you to set both date and time.

It is exactly the same as using both setDate and then setTime in order; this is simply a shorthand version.

.setDateTime( year, month, day, hour, minute, second, milliseconds )

The same as the other setDateTime method, only this also allows you to change the milliseconds too.

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

See also

setDate - setTime