setTime
Client
Changes the game time on this client. The clock keeps running from there.
Also exists on the server, with its own implementation: setTime
bool setTime(int hour [, int minute = 0])
Parameters
| Name | Type | Description |
|---|---|---|
| hour | int | The hour. |
| minute | int | The minutes.default 0 |
Returns
true once the time is set.
Values past the day wrap around: setTime(25) is 1:00 and setTime(-1) is 23:00.
Example
addCommandHandler("noon", function()
setTime(12, 0)
end)