Commands/time

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


 * Syntax


 * Java Edition


 * Pocket Edition


 * Arguments


 * value (PE: amount: int or time: string)
 * Specifies the time to add, query, or set:
 * - Must be between 0 and 2,147,483,647 (inclusive, without the commas)
 * - Must be,   or.
 * - Must be between 0 and 2,147,483,647 (inclusive, without the commas),,  ,  , or.


 * Result


 * Fails if the arguments are not specified correctly.


 * On success:
 * - adds value to the world's game time.
 * - returns the number of game ticks since dawn.
 * - returns the age of the world in game ticks.
 * - returns the number of in-game days passed (matching the debug screen).
 * - sets the world game time to value ( = 1,000,   = 13,000,   = 6000,   = 18000).


 * Examples


 * To set the time to 1,000:  or


 * To add one day to the world time: