What is the exact time on Minecraft that is sunrise?

What time does the sun rise on Minecraft? I would like to know because I am building a map where it needs that time for the map. By this I mean when the sun creates a purple color in the sky.


The Minecraft day is 20 (real-life) minutes long, which translates into 24000 game ticks (there are 20 ticks per second).

Sunrise is implemented as the last part of the day-night cycle and is 90 seconds (1800) ticks) long (according to the wiki), starting at around game time 22200

when the sky will look like this (facing due east)

Start of sunrise phase

to game time 0 when the sky will look like this (also facing due east)

End of sunrise phase

The easiest way to detect sunrise is to use the daylight sensor that has been introduced in the snapshots in combination with a comparator


22796 is the soonest a directly exposed daylight sensor powers on in the morning.