Commands/time

Changes or queries the world's game time. $$,,   and   are three separated commands.

Syntax

 * Java Edition
 * Adds  to the in-game daytime.
 * Queries current time.
 * Sets the in-game daytime.
 * Queries current time.
 * Sets the in-game daytime.
 * Sets the in-game daytime.
 * Sets the in-game daytime.


 * Bedrock Edition
 * Adds  to the in-game daytime.
 * Queries current time.
 * Sets the in-game daytime.
 * Queries current time.
 * Sets the in-game daytime.
 * Sets the in-game daytime.
 * Sets the in-game daytime.

Arguments

 * Specifies the time to add or set.
 * Specifies the time to add or set.

lit. 'daytime' or 'gametime' or 'day'
 * Specifies the time to query. Must be,   or.


 * - the number of game ticks since dawn. (the in-game daytime modulo 24000)
 * - the age of the world in game ticks. (the game time modulo 2147483647)
 * - the number of in-game days passed. (the in-game daytime divided by 24000, then modulo 2147483647)


 * lit. 'TimeSpec' or 'day' or 'night' or 'noon' or 'midnight'
 * Must be,  ,  ,  ,  , or.
 * Specifies the time to set( = 1,000,   = 13,000,   = 6,000,   = 18,000,   = 23,000,   = 12,000).
 * Specifies the time to set( = 1,000,   = 13,000,   = 6,000,   = 18,000,   = 23,000,   = 12,000).

Examples

 * To set the time to 1,000:  or
 * To add one day to the world time:

History
Befehl/time コマンド/time 命令/time