How to Use the Time Command in Minecraft
This Minecraft tutorial explains how to use the /time command with screenshots and step-by-step instructions.
You can change the time, query the time, and increase the age of your Minecraft world using the /time command in Minecraft. Let's explore how to use this cheat (game command).
Supported Platforms
The /time command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
Java Edition (PC/Mac) | Yes (1.3.1) |
Pocket Edition (PE) | Yes (0.16.0) |
Xbox 360 | No |
Xbox One | Yes (1.2) |
PS3 | No |
PS4 | Yes (1.14.0) |
Wii U | No |
Nintendo Switch | Yes (1.5.0) |
Windows 10 Edition | Yes (0.16.0) |
Education Edition | Yes |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Time Command
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Time Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <time>
To query the time:
/time query <day¦daytime¦gametime>
To set the time to the specified time:
/time set <setValue>
Time Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <addAmount>
To set the time using an integer value:
/time set <setAmount>
To set the time using a TimeSpec value:
/time set <time>
To query the time:
/time query <daytime¦gametime¦day>
Time Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <addAmount>
To set the time using an integer value:
/time set <setAmount>
To set the time using a TimeSpec value:
/time set <time>
To query the time:
/time query <daytime¦gametime¦day>
Time Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <addAmount>
To set the time using an integer value:
/time set <setAmount>
To set the time using a TimeSpec value:
/time set <time>
To query the time:
/time query <daytime¦gametime¦day>
Time Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <addAmount>
To set the time using an integer value:
/time set <setAmount>
To set the time using a TimeSpec value:
/time set <time>
To query the time:
/time query <daytime¦gametime¦day>
Time Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <addAmount>
To set the time using an integer value:
/time set <setAmount>
To set the time using a TimeSpec value:
/time set <time>
To query the time:
/time query <daytime¦gametime¦day>
Time Command in Minecraft Education Edition
In Minecraft Education Edition, there are different syntaxes depending on what you would like to do with the World's game time.
To add time to the game time (increasing the age of the world):
/time add <addAmount>
To set the time using an integer value:
/time set <setAmount>
To set the time using a TimeSpec value:
/time set <time>
To query the time:
/time query <daytime¦gametime¦day>
Examples
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac)
To change the time to day in Minecraft Java Edition (PC/Mac):
/time set day
To change the time to night:
/time set night
To find the age of the Minecraft world:
/time query gametime
To add a day to the age of the Minecraft world:
/time add 24000
Example in Pocket Edition (PE)
To change the time to the middle of the day in Minecraft PE:
/time set noon
To change the time to night:
/time set night
To query the number of days elapsed in the Minecraft world:
/time query day
To increase the age of the Minecraft world by 1000 game ticks:
/time add 1000
Example in Xbox One Edition
To change the time to night in Minecraft Xbox One Edition:
/time set night
To change the time to sunrise:
/time set sunrise
To query the number of game ticks since dawn:
/time query daytime
To increase the age of the Minecraft world by 9999 game ticks:
/time add 9999
Example in PS4 Edition
To change the time to sunrise in Minecraft PS4 Edition:
/time set sunrise
To change the time to day:
/time set day
To query the number of days elapsed in the Minecraft world:
/time query day
To increase the age of the Minecraft world by 24000 game ticks:
/time add 24000
Example in Nintendo Switch Edition
To change the time to sunset in Minecraft Nintendo Switch Edition:
/time set sunset
To change the time to night:
/time set night
To query the number of days elapsed in the Minecraft world:
/time query day
To increase the age of the Minecraft world by 48000 game ticks:
/time add 48000
Example in Windows 10 Edition
To change the time to day in Minecraft Windows 10 Edition:
/time set day
To change the time to night:
/time set night
To query the number of game ticks since dawn:
/time query daytime
To increase the age of the Minecraft world by 5000 game ticks:
/time add 5000
Example in Education Edition
To change the time to day in Minecraft Education Edition:
/time set day
To change the time to night:
/time set night
To query the number of days elapsed in the Minecraft world:
/time query day
To increase the age of the Minecraft world by 2000 game ticks:
/time add 2000
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we will set the time to day with the following command:
/time set day
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the game will return to daytime:
You will see the message "Set the time to 1000" appear in the lower left corner of the game window. This will reset the time on the Minecraft game to 1000 which turns the game to day.
TIP: After you have set the time to day, use the
stop time command so that it is always daytime! You can then restart time whenever you want!
Congratulations, you have learned how to use the /time command in Minecraft.
Other Time Cheats
You can use other time commands in Minecraft such as: