Skip to content
/SLASHPLAY

How to change the time of day in Rust

Type env.time 12 in the server console to set the time to noon. Any hour from 0 to 24 works, like env.time 22 for night.

env.time

Sets the in-game time of day as a decimal hour from 0 to 24.

env.time <hour>

Examples

env.time 12

Set the time to noon.

env.time 22

Make it night.

Arguments

hourRequired
Time of day in hours, decimals allowed.

What it does

Changes the time immediately for everyone. 12 is noon, 0 is midnight and 18.5 is 6:30 pm. Pair with env.progresstime False to freeze it there.

The game's own description: Gets or sets the current in-game time of day as a decimal hour (0.0-24.0); writing a value immediately jumps the time to that point

Run it on your server

Type it in the server console or send it over RCON; admins can also use the F1 console in game. To keep a setting, run server.writecfg after changing it, or put it on the launch line as +name value.

Your own
game server.

CS2, Minecraft, Palworld and more, from $0.03 an hour.