Scientists have built a quantum clock that uses the sun’s light to keep time, potentially opening up new ways to study solar activity and distant stars.