/time Command in Minecraft Java Edition

Control and Check World Time with /time

Java EditionWorld & BlocksPermission: Level 2Bedrock version →

The /time command in Minecraft Java Edition lets you control and inspect the clocks running in your world. You can jump to a specific time, shift the clock forward or backward, pause the flow of time, or adjust how fast time passes.

Players and mapmakers use this command when building, testing redstone or command systems, or setting up custom scenes where the time needs to move at a specific speed or stay completely frozen. To use it, you need permission level 2 (Operator or cheats turned on in single-player).

Syntax (Java 26.3, 17 forms)

  1. /time add <time>
  2. /time of <clock> add <time>
  3. /time of <clock> pause
  4. /time of <clock> query <timeline> [repetition]
  5. /time of <clock> query time
  6. /time of <clock> rate <rate>
  7. /time of <clock> resume
  8. /time of <clock> set <time>
  9. /time of <clock> set <timemarker>
  10. /time pause
  11. /time query <timeline> [repetition]
  12. /time query gametime
  13. /time query time
  14. /time rate <rate>
  15. /time resume
  16. /time set <time>
  17. /time set <timemarker>

The forms you will use most

/time set <time>
Sets the current time to a specific tick value or duration.
/time set <timemarker>
Sets the current time to a specific namespaced time marker.
/time add <time>
Adds a duration of time to the current clock.
/time pause
Pauses the progression of time.
/time resume
Resumes the progression of time after it has been paused.
/time rate <rate>
Changes the speed multiplier at which time moves.
/time query time
Checks and returns the current time value.
/time of <clock> set <time>
Sets the time of a specific world clock registry entry.

Arguments

ArgumentTypeWhat it means
<time>time
at least -2147483648
A time duration (at least -2147483648) written in ticks like 100, seconds like 5s, or days like 2d.
<clock>registry entry
world clock
A registry entry that specifies which world clock you want to control or query.
<timeline>registry entry
timeline
A registry entry that specifies a timeline to query.
<rate>decimal number
1e-05 to 1000.0
A decimal number between 1e-05 and 1000.0 that sets the speed of time.
<timemarker>resource IDA namespaced resource ID representing a specific time marker.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 26.1 Syntax changed.
    + /time of <clock> add <time>+ /time of <clock> pause+ /time of <clock> query <timeline> [repetition]+ /time of <clock> query time+ /time of <clock> rate <rate>+ /time of <clock> resume− /time query day− /time query daytime− /time set day− /time set midnight− /time set night− /time set noonand 8 more
  2. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition also has the /time command, but it only supports four basic syntax forms: /time add <amount: int>, /time set <amount: int>, /time set <time: TimeSpec>, and /time query <time: TimeQuery>. Bedrock Edition does not include the pause, resume, rate, or specific world clock (of <clock>) options found in Java Edition 26.3.

See /time in Bedrock Edition →

FAQ

Why does /time set day not work anymore?

In Java Edition 26.1, the syntax changed and older forms like /time set day, /time set midnight, /time query day, and /time query daytime were removed. You should now use /time set <time> or /time set <timemarker> instead.

How do I freeze or slow down time with the /time command?

You can stop time completely by running /time pause and start it again with /time resume. If you want time to keep moving at a slower or faster speed, use /time rate <rate> with a decimal number between 1e-05 and 1000.0, such as 0.5.

What permission level is needed to use /time?

You need permission level 2 to run the /time command, which means you must be a server operator or have cheats enabled in a single-player world.

Related commands

/clone/difficulty/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/setworldspawn/waypoint/weather/worldborder