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 second of gameplay = 1 Minecraft minute and 12 Minecraft seconds.
 * 1 minute of gameplay = 1 Minecraft hour and 12 Minecraft minutes.
 * 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.
 * If placed in the Overworld using external editors or superflat codes, the End's biome has a black sky all day. The Nether's biome, however, has a normal sky when edited into the Overworld.
 * 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 and Slimes are the only naturally-spawned hostile Overworld mobs that are unaffected by sunlight.
 * Daylight Sensors will work.

Sunset/dusk


Lasts $1 1/2$ 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 will 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 the player sleeps through night).

Sunrise/dawn


Lasts $1 1/2$ 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.

Trivia

 * Minecraft time is exactly 72 times faster than normal time. This can be easily calculated as the proportion $1440/20$ = 72, as there are 1440 minutes in a real day (60 × 24) and 20 minutes in a full minecraft day.
 * 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 proceed when a single player game is paused. This also applies when switching to a different window, unless a GUI window (such as the inventory) is open. In multiplayer, time proceeds normally as long as the server is on.
 * If the player flies high enough, the Sun and Moon appear at the same time, apparently because the chunks in the way have unloaded. This has been redefined from a bug to a feature.
 * If Zombies or Skeletons are in water or in the shadows caused by trees, they can survive through the daytime.
 * The day-night cycle continues while in the Nether or the End, but the world will not change until the chunks load again.