# Change day/night duration

* Step 1: Stop Your Server Always turn off your server before editing configuration files to prevent data corruption or changes not saving.
* Step 2: Locate the Config File Navigate to your server files and find the configuration file for your specific world.
  * Path: `/hytale/universe/worlds/<world_name>/config.json`
* Step 3: Edit the Gameplay Config Open the file and look for the line `"GameplayConfig":`. You may need to add the following lines manually right under it if they don't exist:

<mark style="color:$primary;">JSON</mark>

```
"GameplayConfig": {
    "DaytimeDurationSeconds": 1800,
    "NighttimeDurationSeconds": 1000
}
```

* Step 4: Save and Restart Save the file changes and start your server. The new cycle lengths will apply immediately.

#### Pro Tip: Time Math

The values are in seconds. Here is a quick cheat sheet for common durations:

* 10 Minutes: `600`
* 20 Minutes: `1200`
* 30 Minutes: `1800`
* 1 Hour: `3600`

For example, if you want a very long day for building, set `"DaytimeDurationSeconds"` to `3600` (1 hour).

{% hint style="success" %}
**Good to know:** Browse through amazing Hytale builds – hubs, spawns and lobbies, arenas, SkyBlock islands and much more <https://www.breadbuilds.com/hytale-builds>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.breadbuilds.com/hytale-tutorials/change-day-night-duration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
