Clock

Clocks are time telling devices that display the current in-game position of the sun and the moon. Clocks only function properly in the Overworld.

Trading
Expert-level librarian villagers have a 33.3% ($1/3$) chance to sell a single clock for 4 emeralds as part of their trades.

Expert-level librarian villagers have a 50% ($1/2$) chance to sell a clock for 5 emeralds.

Usage
The clock dial consists of two halves, a day side and a night side. The dial spins clockwise slowly to indicate the time of day, corresponding to the sun or moon's actual position in the sky. The player is able to sleep a few seconds after the clock shows exactly dusk.

The dial can be read from a clock in any of its representations: held in a player's hand, placed in any inventory or crafting grid, in an item frame, and even as a dropped item.

Because there is no day/night cycle in the Nether or the End, clocks do not work properly in these dimensions. Instead, the dial rotates rapidly and randomly, making them useless.

Piglins
are attracted to clocks and run toward any clock on the ground, and inspect it for 6 to 8 seconds before putting it in their inventory.

ID




Video
Note: This video doesn't state that Clocks can be found in Buried Treasure, Shipwrecks, or Ruined Portals because the video was released in an earlier version.

Trivia

 * $1/3$, a clock can be viewed under the item statistics page as long as one obtained a clock at some point. It can also be viewed in recipe book if the recipe for it has been unlocked.
 * $$, the default resource pack for the clock contains 64 individual frames, each frame lasting about 18.75 seconds in real time (375 ticks) (1350 seconds (22 minutes, 30 seconds) in Minecraft time).
 * When the time of day changes suddenly, such as after sleeping or when is used, the clock dial spins rapidly to catch up.
 * Although clocks do not function in the Nether or the End, the actual daylight cycle does continue.