/time command
The /time command sets, advances and checks the time in the world. Since Java 26.1, it works on world clocks, so you can also pause time or change how fast it passes.
Syntax
Java Edition
/time [of <clock>] (set <ticks|marker>|add <ticks>|query <what>|pause|resume|rate <multiplier>) Bedrock Edition
/time (set <ticks|marker>|add <ticks>|query <daytime|gametime|day>) Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| of <clock> | clock ID (Java 26.1+) | No | The world clock the command works on. Without this argument, the game uses the dimension's default clock: minecraft:overworld in the Overworld and minecraft:the_end in the End. In a dimension with no default clock, such as the Nether, the command fails without the of argument. |
| set | add | query | pause | resume | rate | subcommand | Yes | What you want to do with the time. The pause, resume and rate subcommands only exist in Java 26.1 and newer. |
| ticks | marker | number or name | No | Used with set and add (20 ticks is 1 second). Markers in Java: day (1000), noon (6000), night (13000), midnight (18000). Bedrock also has sunrise (23000) and sunset (12000). Since Java 26.1, set with a number sets the clock's total tick count, while set with a marker moves the clock forward to the next occurrence of that moment. |
| what (query) | name | No | Java 26.1+: time (the clock's ticks), gametime (the world's age), <timeline> or <timeline> repetition, for example minecraft:day. Bedrock: daytime, gametime or day. |
| multiplier (rate) | number | No | How fast the clock runs: greater than 0 and no more than 1000. A value of 1 is normal speed. |
Usage examples
Tips and tricks
A full day lasts 24,000 ticks, which is 20 minutes of real time.
To stop the day cycle, use a game rule: /gamerule advance_time false in Java 1.21.11 and newer (formerly doDaylightCycle), or /gamerule dodaylightcycle false in Bedrock.
Since Java 26.1, set and add return the clock's total tick count (for example to /execute store) instead of the time of day.
/time query gametime counts the world's age and doesn't change after /time set or /time add.
In Bedrock 26.50, /time of only works with the Creator World Clocks Features experiment. Experimental features may still change.
Related commands
/weather
Changes the weather to clear, rain or a thunderstorm. You can also set how long it lasts.
/gamerule
Changes the game rules: the day cycle, weather, mob spawning, keeping your inventory after death ...
/execute
The most powerful command in Minecraft. It runs other commands in a modified context: as another ...
Frequently asked questions
How do you use the /time command in Minecraft?
Open the chat with the T or / key and type the command using this syntax: /time [of <clock>] (set <ticks|marker>|add <ticks>|query <what>|pause|resume|rate <multiplier>). The /time command sets, advances and checks the time in the world. Since Java 26.1, it works on world clocks, so you can also pause time or change how fast it passes.
What permissions does /time require?
The /time command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.
Does /time work in Bedrock Edition?
Yes, the /time command works in both editions, but the syntax differs between Java and Bedrock Edition. You'll find the syntax for both versions above.