How do you make a time machine in minecraft?

There is no time machine in minecraft. The "Time Machine" is a nickname for the Minecraft Launcher, the startup of the game. You can access old versions of Minecraft.