Minecraft wiki entry for Command_blocks_and_functions, associated text: By making two similar places on one map, players can have a button activate a command block to teleport them from one to another, while also changing the time of day. This can be used to look like time travel.