For millennia, humans have kept track of time by observing the changing face of the moon.