Daylight cycle

The day/night cycle is a 20 minute long lapse between two main light settings.

Minecraft time to real time conversion


The following are approximations of Minecraft time to real time:


 * 1 Minecraft second = 0.013 8 seconds of gameplay.
 * 1 Minecraft minute = 0.8 3 seconds of gameplay.
 * 1 Minecraft hour = 50 seconds of gameplay.
 * 1 Minecraft day = 20 minutes of gameplay.
 * 1 Minecraft week (7 days) = 2. 3 hours of gameplay.
 * 1 Minecraft month (30 days) = 10 hours of gameplay.
 * 1 Minecraft year (365.25 days) = 121.75 hours or 5.07 days of gameplay.

The approximation of real time to Minecraft time:


 * 1 hour of gameplay = 3 Minecraft days.
 * 1 day of gameplay = 72 Minecraft days, = 2.4 Minecraft months.
 * 1 week of gameplay ≈ 1.5 Minecraft years, ≈ 17 Minecraft months, = 72 Minecraft weeks, = 504 Minecraft days
 * 1 month of gameplay ≈ 6 Minecraft years, = 72 Minecraft months, ≈ 308.5 Minecraft weeks, = 2,160 Minecraft days
 * 1 year of gameplay = 72 Minecraft years, ≈ 876.5 Minecraft months, ≈ 3,757 Minecraft weeks, ≈ 26,297.5 Minecraft days

Daytime
Daytime is the longest section of the cycle, lasting 10 minutes.
 * When a player first spawns on singleplayer in Infdev, Alpha, Beta and the Full Release, the cycle will always start right at the beginning of daytime. Vanilla multiplayer servers also start at the beginning of daytime, but the cycle ignores new players joining, so the cycle could be at any point when any particular player first spawn into a server.
 * Daytime features the Sun and a light blue sky. This color depends on the biome you are currently in. Deserts and Forests have a turquoise sky, while Tundra and Taiga have a more blue sky.
 * During daytime, all blocks that are in direct vertical view of the sky receive daylight, the strongest light possible, which is light level 15.
 * Daylight provides ample light for the growth of all trees and crops.
 * Zombies and Skeletons in direct view of the sky (and not in water) during daytime will be set on fire. Additionally, Spiders in direct view of the sky that are already aggressive will become neutral unless they are currently chasing the player, and Endermen in direct view of the sky will teleport randomly when near the player and become neutral if aggressive.  Creepers are the only naturally-spawned hostile Overworld mobs that are unaffected by sunlight.

Sunset/dusk


Lasts 1 ½ minutes.
 * A period between daytime and nighttime, when the Sun sets on the West horizon, and the Moon rises on the East horizon.
 * The light level of all blocks that are in direct vertical view of the sky and are not lit by other sources decreases by 1 every 10 seconds.
 * The sky near the setting Sun will have a red glow when the Sun sets.
 * Actual time of Sunset will not change if the texture for the Sun is changed. The day/night cycle will be the same length with the same effects even if the Sun is visibly larger or smaller.
 * The Sun will also get visibly larger when it sets.
 * Between dusk and dawn you may sleep in a bed. In single-player mode, doing so will advance the day-night cycle to dawn.  This will also occur in multiplayer if every player online is in a bed simultaneously.  Time doesn't pass with regards to other aspects of the world, though.  Crops won't grow, and items in furnaces won't cook, for example, although active weather effects usually stop.

Nighttime


Lasts 7 minutes.
 * During nighttime the world is covered in darkness with a light level of 4 and hostile mobs may spawn on the surface.
 * Nighttime features the Moon, and a dark blue sky, with white stars.
 * The stars at night appear to move with the moon, and can be seen in The Void at dawn and dusk.
 * During the night crops will still grow (unless player sleeps through night).

Sunrise/dawn


Lasts 1 ½ minutes.
 * A period between nighttime and daytime, when Moon sets on the West horizon and the Sun rises on the East horizon.
 * All blocks that are in direct vertical view of the sky get 1 shade of lighting brighter every 10 seconds.
 * The sky near the rising Sun will have a red glow when the Sun rises.
 * The Sun will slowly shrink to its 8x8 pixel size while rising.
 * Skeletons and Zombies will begin to burn.

Clock
Clocks allow players to determine Minecraft time. They are useful underground where the current day/night cycle is not visible. They help the player avoid mistakenly surfacing at night and falling prey to night-spawned surface mobs. Clocks will spin uselessly in the Nether and the End as there is no day-night cycle in those dimensions.

History

 * Notch mentioned on his Twitter that the Sun actually rose in the north in Minecraft. This was a bug and was fixed in Minecraft Beta 1.9 prerelease 4, so the Sun and Moon now both rise in the east.; this also changed the South-West rule to the South-East rule.
 * In the leaked 1.8 pre-release version this could be changed by pressing F6 (reverse time) and F7 (advance time) which allows you to manipulate the time of day/night.
 * After Beta 1.9 Pre-release 4, lunar phases were added.


 * In snapshot 12w21a, the stars that appear at night were updated to be more realistic (slightly smaller and brighter).

Trivia

 * The Sun and Moon rotate around the player, not the center of the map.
 * In the Minecraft sky, the Sun and Moon always appear in the same position relative to the stars.
 * Day and night do not simulate when the game is paused in single player.
 * Passage of time in the game generally stops when you alt-tab away (or ⌘+Tab) from the game (due to the menu appearing). To get around this, you can open a chest, your inventory, a furnace, a dispenser, or anything else that raises an item menu with your inventory involved. This will prevent the menu from appearing when you switch tasks, allowing for time passage while you're in a different window. In multiplayer, the menu will not pause the game, and allow the time to continue to flow.
 * If you fly too high, the sun and moon appear at the same time. This was eventually redefined from a bug to a feature.
 * The above occurs because the chunks unload, allowing them to show, due to the way it works.