# How to Set Time & Weather on Your Rust Server (/docs/rust/environment-settings)



Rust exposes convars for the in-game clock and weather. These are handy for events, screenshots, roleplay servers, or forcing permanent daytime. Run them in the **Console** to apply live, or add them to `server.cfg` to persist.

Time of Day [#time-of-day]

| Convar                           | Description                                                                |
| -------------------------------- | -------------------------------------------------------------------------- |
| `env.time <0–24>`                | Set the current time. `12` = noon, `0`/`24` = midnight, `18` = dusk.       |
| `env.progresstime <true\|false>` | Whether the clock advances. `false` **freezes** time at its current value. |

Permanent daytime [#permanent-daytime]

```
env.time 12
env.progresstime false
```

Permanent night [#permanent-night]

```
env.time 0
env.progresstime false
```

> **Day/night *length*:** vanilla Rust has no convar to lengthen a day — the cycle duration is fixed. To run, say, a 3-hour day you need a plugin (e.g. a day/night cycle plugin on [Oxide](/docs/rust/oxide-plugins) or [Carbon](/docs/rust/carbon-mod)). Freezing time with `env.progresstime false` is the vanilla way to hold a specific time of day.

Weather [#weather]

Weather convars override the natural weather system. Values are `0` (off) to `1` (full); setting `-1` returns control to the game.

| Convar                 | Effect               |
| ---------------------- | -------------------- |
| `weather.rain <0–1>`   | Force rain intensity |
| `weather.fog <0–1>`    | Force fog density    |
| `weather.wind <0–1>`   | Force wind strength  |
| `weather.clouds <0–1>` | Force cloud cover    |

Force clear skies [#force-clear-skies]

```
weather.rain 0
weather.fog 0
weather.clouds 0
```

Force a storm [#force-a-storm]

```
weather.rain 1
weather.wind 1
weather.clouds 1
```

> To hand weather back to the automatic system, set the value back to `-1` (e.g. `weather.rain -1`).

Applying Changes [#applying-changes]

* **Live:** run the convar in the **Console**.
* **Permanent:** add the lines to `server.cfg`. Note that forcing time/weather in `server.cfg` will re-apply on every boot.

Related Guides [#related-guides]

* [Server Configuration (server.cfg)](/docs/rust/server-config)
* [Oxide Plugins](/docs/rust/oxide-plugins)
* [Admin Setup](/docs/rust/admin-setup)
