Terraria item ID 3064. Terraria 1.4.5.7.
The Enchanted Sundial is a Hardmode furniture item. It can be triggered by the ⚷ Open / Activate key or wires, doing so will advance time to sunrise (4:30 AM) the following day. It has a 7-day cooldown period, so once used, it will not be usable again until 7 in-game days have passed (see Notes for details). When the Enchanted Sundial is ready to be used, the dial at the top of its sprite and the sun in the middle will both glow bright yellow. The Enchanted Sundial is obtained from fished Pearlwood (1/200 (0.5%) chance), Mythril (1/60 (1.67%) chance), and Titanium Crates (1/20 (5%) chance).
Description from the Terraria Wiki.